commander
Advanced tools
Comparing version 7.1.0 to 7.2.0
@@ -11,2 +11,15 @@ # Changelog | ||
## [7.2.0] (2021-03-26) | ||
### Added | ||
- TypeScript typing for `parent` property on `Command` ([#1475]) | ||
- TypeScript typing for `.attributeName()` on `Option` ([#1483]) | ||
- support information in package ([#1477]) | ||
### Changed | ||
- improvements to error messages, README, and tests | ||
- update dependencies | ||
## [7.1.0] (2021-02-15) | ||
@@ -406,6 +419,8 @@ | ||
[#1464]: https://github.com/tj/commander.js/pull/1464 | ||
[#1475]: https://github.com/tj/commander.js/pull/1475 | ||
[#1477]: https://github.com/tj/commander.js/pull/1477 | ||
[#1483]: https://github.com/tj/commander.js/pull/1483 | ||
[Unreleased]: https://github.com/tj/commander.js/compare/master...develop | ||
[7.2.0]: https://github.com/tj/commander.js/compare/v7.1.0...v7.2.0 | ||
[7.1.0]: https://github.com/tj/commander.js/compare/v7.0.0...v7.1.0 | ||
@@ -412,0 +427,0 @@ [7.0.0]: https://github.com/tj/commander.js/compare/v6.2.1...v7.0.0 |
{ | ||
"name": "commander", | ||
"version": "7.1.0", | ||
"version": "7.2.0", | ||
"description": "the complete solution for node.js command-line programs", | ||
@@ -23,5 +23,5 @@ "keywords": [ | ||
"lint": "eslint index.js esm.mjs \"tests/**/*.js\"", | ||
"typescript-lint": "eslint typings/*.ts", | ||
"typescript-lint": "eslint typings/*.ts tests/*.ts", | ||
"test": "jest && npm run test-typings", | ||
"test-esm": "node --experimental-modules ./tests/esm-test.mjs", | ||
"test-esm": "node --experimental-modules ./tests/esm-imports-test.mjs", | ||
"test-typings": "tsd", | ||
@@ -35,3 +35,4 @@ "typescript-checkJS": "tsc --allowJS --checkJS index.js --noEmit", | ||
"esm.mjs", | ||
"typings/index.d.ts" | ||
"typings/index.d.ts", | ||
"package-support.json" | ||
], | ||
@@ -50,2 +51,3 @@ "type": "commonjs", | ||
"standard": "^16.0.3", | ||
"ts-jest": "^26.5.1", | ||
"tsd": "^0.14.0", | ||
@@ -56,7 +58,15 @@ "typescript": "^4.1.2" | ||
"jest": { | ||
"collectCoverage": true | ||
"testEnvironment": "node", | ||
"collectCoverage": true, | ||
"transform": { | ||
"^.+\\.tsx?$": "ts-jest" | ||
}, | ||
"testPathIgnorePatterns": [ | ||
"/node_modules/" | ||
] | ||
}, | ||
"engines": { | ||
"node": ">= 10" | ||
} | ||
}, | ||
"support": true | ||
} |
@@ -714,3 +714,3 @@ # Commander.js | ||
With positional options, the `-b` is a program option in the first line and a subcommand option in the second: | ||
With positional options, the `-b` is a program option in the first line and a subcommand option in the second line: | ||
@@ -729,3 +729,3 @@ ```sh | ||
With pass through options, the `--port=80` is a program option in the line and passed through as a command-argument in the second: | ||
With pass through options, the `--port=80` is a program option in the first line and passed through as a command-argument in the second line: | ||
@@ -732,0 +732,0 @@ ```sh |
@@ -81,2 +81,8 @@ // Type definitions for commander | ||
name(): string; | ||
/** | ||
* Return option name, in a camelcase format that can be used | ||
* as a object attribute key. | ||
*/ | ||
attributeName(): string; | ||
} | ||
@@ -160,4 +166,4 @@ type OptionConstructor = new (flags: string, description?: string) => Option; | ||
args: string[]; | ||
commands: Command[]; | ||
parent: Command | null; | ||
@@ -164,0 +170,0 @@ /** |
Sorry, the diff of this file is too big to display
144710
8
2542
12