Enabled the --splitting option in the build script to support code splitting, which the cli/library can both reference instead of bundling the entire bundle for each, so this effectively cuts the bundle size in half.
56 lines
1.5 KiB
JSON
56 lines
1.5 KiB
JSON
{
|
|
"name": "code-tokenizer-md",
|
|
"version": "1.2.5",
|
|
"type": "module",
|
|
"license": "AGPL-3.0-or-later",
|
|
"repository": "https://github.com/geoffsee/code-tokenizer-md.git",
|
|
"author": "Geoff Seemueller",
|
|
"description": "Open-source CLI/Library for turning a git repository's contents into a single well-formatted markdown file.",
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
}
|
|
},
|
|
"bin": {
|
|
"code-tokenizer-md": "./dist/cli.js"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "rm -rf dist && bun build ./src/index.ts ./src/cli.ts --splitting --outdir dist --target node && bun ./build.ts",
|
|
"test": "bun test",
|
|
"prepublishOnly": "bun run build",
|
|
"dev": "bun run .",
|
|
"deploy:dev": "bun run build && bun publish .",
|
|
"lint": "eslint src/",
|
|
"lint:fix": "eslint src/ --fix",
|
|
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,yml,yaml}\"",
|
|
"fix": "bun format && bun lint:fix"
|
|
},
|
|
"dependencies": {
|
|
"glob": "^11.0.0",
|
|
"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"
|
|
}
|
|
}
|