Replaced Bun's `Glob` usage with the `glob` package in `MarkdownGenerator.ts` for better compatibility and functionality. Updated build entrypoints to include all TypeScript files and adjusted dependencies in `package.json` and `pnpm-lock.yaml` to accommodate this change. Also added type annotations to `fileExclusions` and `fileTypeExclusions` for improved type checking.
54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
JSON
{
|
|
"name": "code-tokenizer-md",
|
|
"version": "1.1.6",
|
|
"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"
|
|
],
|
|
"scripts": {
|
|
"build": "rm -rf dist && bun build ./src/index.ts ./src/cli.ts --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"
|
|
}
|
|
}
|