UNPKG

parse-my-command

Version:

Parse argv with Commander.js without executing the command

71 lines (70 loc) 2.19 kB
{ "name": "parse-my-command", "version": "0.5.22", "description": "Parse argv with Commander.js without executing the command", "keywords": [ "parser", "argv", "commander", "commanderjs" ], "homepage": "https://github.com/fardjad/node-parse-my-command", "bugs": { "url": "https://github.com/fardjad/node-parse-my-command/issues" }, "repository": { "type": "git", "url": "git+ssh://git@github.com/fardjad/node-parse-my-command.git" }, "license": "MIT", "author": "Fardjad Davari <public@fardjad.com>", "type": "module", "exports": { ".": { "require": { "default": "./dist/index.cjs", "types": "./dist/index.d.cts" }, "import": { "default": "./dist/index.js", "types": "./dist/index.d.ts" } } }, "main": "dist/index.cjs", "types": "dist/index.d.ts", "files": [ "dist/index.cjs", "dist/index.d.cts", "dist/index.d.ts", "dist/index.js" ], "scripts": { "build": "bun run clean && bun run build:esm && bun run build:cjs && bun run build:types", "build:cjs": "bun build ./src/index.ts --format cjs --target node --packages external --outdir ./dist --entry-naming index.cjs --sourcemap=inline", "build:esm": "bun build ./src/index.ts --format esm --target node --packages external --outdir ./dist --entry-naming index.js --sourcemap=inline", "build:types": "tsc -p tsconfig.build.json && cp ./dist/index.d.ts ./dist/index.d.cts", "clean": "rm -rf coverage dist", "fix": "bunx biome check --write .", "lint": "bunx biome check .", "prepack": "bun run build", "test": "bun run typecheck && bun run test:unit && bun run lint", "test:coverage": "bun run typecheck && bun test --coverage --coverage-reporter=lcov", "test:unit": "bun test", "typecheck": "tsc -p tsconfig.json", "update:deps": "bun update --latest && bun run fix" }, "dependencies": { "camelcase": "^9.0.0", "commander": "^15.0.0" }, "devDependencies": { "@biomejs/biome": "^2.5.6", "@types/bun": "^1.3.14", "typescript": "^7.0.2" }, "packageManager": "bun@1.3.10", "engines": { "node": ">=20" } }