commander
Advanced tools
Comparing version 10.0.1 to 11.0.0
{ | ||
"name": "commander", | ||
"version": "10.0.1", | ||
"version": "11.0.0", | ||
"description": "the complete solution for node.js command-line programs", | ||
@@ -36,2 +36,3 @@ "keywords": [ | ||
"typings/index.d.ts", | ||
"typings/esm.d.mts", | ||
"package-support.json" | ||
@@ -43,11 +44,20 @@ ], | ||
".": { | ||
"types": "./typings/index.d.ts", | ||
"require": "./index.js", | ||
"require": { | ||
"types": "./typings/index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"import": { | ||
"types": "./typings/esm.d.mts", | ||
"default": "./esm.mjs" | ||
}, | ||
"default": "./index.js" | ||
}, | ||
"./esm.mjs": { | ||
"types": "./typings/esm.d.mts", | ||
"import": "./esm.mjs" | ||
}, | ||
"./esm.mjs": "./esm.mjs" | ||
} | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^29.2.4", | ||
"@types/node": "^18.11.18", | ||
"@types/node": "^20.2.5", | ||
"@typescript-eslint/eslint-plugin": "^5.47.1", | ||
@@ -57,3 +67,3 @@ "@typescript-eslint/parser": "^5.47.1", | ||
"eslint-config-standard": "^17.0.0", | ||
"eslint-config-standard-with-typescript": "^24.0.0", | ||
"eslint-config-standard-with-typescript": "^33.0.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
@@ -65,4 +75,4 @@ "eslint-plugin-jest": "^27.1.7", | ||
"ts-jest": "^29.0.3", | ||
"tsd": "^0.25.0", | ||
"typescript": "^4.9.4" | ||
"tsd": "^0.28.1", | ||
"typescript": "^5.0.4" | ||
}, | ||
@@ -81,5 +91,5 @@ "types": "typings/index.d.ts", | ||
"engines": { | ||
"node": ">=14" | ||
"node": ">=16" | ||
}, | ||
"support": true | ||
} |
@@ -51,2 +51,3 @@ # Commander.js | ||
- [Debugging stand-alone executable subcommands](#debugging-stand-alone-executable-subcommands) | ||
- [npm run-script](#npm-run-script) | ||
- [Display error](#display-error) | ||
@@ -1065,2 +1066,13 @@ - [Override exit and output handling](#override-exit-and-output-handling) | ||
### npm run-script | ||
By default when you call your program using run-script, `npm` will parse any options on the command-line and they will not reach your program. Use | ||
`--` to stop the npm option parsing and pass through all the arguments. | ||
The synopsis for [npm run-script](https://docs.npmjs.com/cli/v9/commands/npm-run-script) explicitly shows the `--` for this reason: | ||
```console | ||
npm run-script <command> [-- <args>] | ||
``` | ||
### Display error | ||
@@ -1127,3 +1139,3 @@ | ||
The current version of Commander is fully supported on Long Term Support versions of Node.js, and requires at least v14. | ||
The current version of Commander is fully supported on Long Term Support versions of Node.js, and requires at least v16. | ||
(For older versions of Node.js, use an older version of Commander.) | ||
@@ -1130,0 +1142,0 @@ |
Sorry, the diff of this file is too big to display
175557
14
3754
1147