Added "types" field pointing to "dist/index.d.ts" in package.json to include type definitions in the package. This change helps consumers of the package who are using TypeScript, providing them with autocompletion and type checking. Incremented package version from 1.2.5 to 1.2.6 to reflect this addition.
57 lines
1.5 KiB
JSON
57 lines
1.5 KiB
JSON
{
|
|
"name": "code-tokenizer-md",
|
|
"version": "1.2.6",
|
|
"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"
|
|
],
|
|
"types": "dist/index.d.ts",
|
|
"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"
|
|
}
|
|
}
|