Add Bun support and improve build process
Updated project to use Bun runtime, including changes to build and development scripts, plugin additions, and configuration updates in tsconfig.json and package.json. Enhanced README documentation and migrated source files to TypeScript.
This commit is contained in:
31
package.json
31
package.json
@@ -1,20 +1,30 @@
|
||||
{
|
||||
"name": "code-tokenizer-md",
|
||||
"version": "1.0.11",
|
||||
"version": "1.0.12",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"main": "src/index.ts",
|
||||
"module": "src/index.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./src/index.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bin": {
|
||||
"code-tokenizer-md": "./dist/cli.js"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"types": "",
|
||||
"scripts": {
|
||||
"build": "rm -rf dist && bun run build.ts",
|
||||
"build": "rm -rf dist && bun ./build.ts",
|
||||
"test": "bun test",
|
||||
"prepublishOnly": "npm run build",
|
||||
"dev": "npx .",
|
||||
"deploy:dev": "pnpm build && pnpm publish .",
|
||||
"dev": "bun run .",
|
||||
"deploy:dev": "bun run build && pnpm publish .",
|
||||
"lint": "eslint src/",
|
||||
"lint:fix": "eslint src/ --fix",
|
||||
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,yml,yaml}\"",
|
||||
@@ -29,12 +39,15 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.14.0",
|
||||
"@types/bun": "latest",
|
||||
"@types/micromatch": "^4.0.9",
|
||||
"@types/node": "^22.9.1",
|
||||
"bun": "latest",
|
||||
"bun-plugin-isolated-decl": "^0.1.6",
|
||||
"eslint": "^9.14.0",
|
||||
"globals": "^15.12.0",
|
||||
"oxc-transform": "^0.37.0",
|
||||
"prettier": "^3.3.3",
|
||||
"bun": "latest",
|
||||
"@types/bun": "latest",
|
||||
"@types/node": "^22.9.1",
|
||||
"@types/micromatch": "^4.0.9"
|
||||
"typescript": "^5.6.3"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user