Files
code-tokenizer/package.json
Geoff Seemueller 2fb1568d97 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.
2024-11-21 14:28:26 -05:00

54 lines
1.2 KiB
JSON

{
"name": "code-tokenizer-md",
"version": "1.0.12",
"type": "module",
"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 ./build.ts",
"test": "bun test",
"prepublishOnly": "npm run build",
"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}\"",
"fix": "pnpm format && pnpm lint:fix"
},
"dependencies": {
"llama3-tokenizer-js": "^1.0.0",
"micromatch": "^4.0.8"
},
"peerDependencies": {
"node": ">=14.0.0"
},
"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",
"typescript": "^5.6.3"
}
}