Integrate file exclusion with micromatch, refactor code

Utilized micromatch for file exclusion logic in MarkdownGenerator. Simplified constructor parameters and refactored `getTrackedFiles` for better readability. Updated dependencies and relevant scripts in package.json.
This commit is contained in:
2024-11-21 13:02:22 -05:00
parent a875cbf5d4
commit 1226a742b5
4 changed files with 94 additions and 95 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "code-tokenizer-md",
"version": "1.0.7",
"version": "1.0.8",
"type": "module",
"main": "dist/index.js",
"bin": {
@@ -13,15 +13,16 @@
"build": "rm -rf dist && mkdir dist && cp src/*.js dist/",
"test": "echo \"No tests specified\" && exit 0",
"prepublishOnly": "npm run build",
"dev": "node ./src/cli.js",
"deploy:dev": "pnpm publish .",
"dev": "npx .",
"deploy:dev": "pnpm 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"
"llama3-tokenizer-js": "^1.0.0",
"micromatch": "^4.0.8"
},
"peerDependencies": {
"node": ">=14.0.0"