lerna-projen 0.1.134 → 0.1.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.jsii
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"lerna-projen": "bin/lerna-projen"
|
|
11
11
|
},
|
|
12
12
|
"bundled": {
|
|
13
|
-
"commander": "^
|
|
13
|
+
"commander": "^11.0.0",
|
|
14
14
|
"fs-extra": "^9.1.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
@@ -781,6 +781,6 @@
|
|
|
781
781
|
"symbolId": "src/types:TaskCustomization"
|
|
782
782
|
}
|
|
783
783
|
},
|
|
784
|
-
"version": "0.1.
|
|
785
|
-
"fingerprint": "
|
|
784
|
+
"version": "0.1.135",
|
|
785
|
+
"fingerprint": "cfrcE22PINwF3ovPwQOft2pUHKiqfxdd+hpvZiHwYfs="
|
|
786
786
|
}
|
package/lib/index.js
CHANGED
|
@@ -94,7 +94,7 @@ class LernaProject extends projen_1.javascript.NodeProject {
|
|
|
94
94
|
}
|
|
95
95
|
exports.LernaProject = LernaProject;
|
|
96
96
|
_a = JSII_RTTI_SYMBOL_1;
|
|
97
|
-
LernaProject[_a] = { fqn: "lerna-projen.LernaProject", version: "0.1.
|
|
97
|
+
LernaProject[_a] = { fqn: "lerna-projen.LernaProject", version: "0.1.135" };
|
|
98
98
|
/**
|
|
99
99
|
* @pjid lerna-ts-project
|
|
100
100
|
*/
|
|
@@ -139,7 +139,7 @@ class LernaTypescriptProject extends projen_1.typescript.TypeScriptProject {
|
|
|
139
139
|
}
|
|
140
140
|
exports.LernaTypescriptProject = LernaTypescriptProject;
|
|
141
141
|
_b = JSII_RTTI_SYMBOL_1;
|
|
142
|
-
LernaTypescriptProject[_b] = { fqn: "lerna-projen.LernaTypescriptProject", version: "0.1.
|
|
142
|
+
LernaTypescriptProject[_b] = { fqn: "lerna-projen.LernaTypescriptProject", version: "0.1.135" };
|
|
143
143
|
class LernaProjectFactory {
|
|
144
144
|
constructor(project) {
|
|
145
145
|
this.project = project;
|
|
@@ -48,6 +48,7 @@ Read this in other languages: English | [简体中文](./Readme_zh-CN.md)
|
|
|
48
48
|
- [createCommand()](#createcommand)
|
|
49
49
|
- [Node options such as `--harmony`](#node-options-such-as---harmony)
|
|
50
50
|
- [Debugging stand-alone executable subcommands](#debugging-stand-alone-executable-subcommands)
|
|
51
|
+
- [npm run-script](#npm-run-script)
|
|
51
52
|
- [Display error](#display-error)
|
|
52
53
|
- [Override exit and output handling](#override-exit-and-output-handling)
|
|
53
54
|
- [Additional documentation](#additional-documentation)
|
|
@@ -1061,6 +1062,17 @@ the inspector port is incremented by 1 for the spawned subcommand.
|
|
|
1061
1062
|
|
|
1062
1063
|
If you are using VSCode to debug executable subcommands you need to set the `"autoAttachChildProcesses": true` flag in your launch.json configuration.
|
|
1063
1064
|
|
|
1065
|
+
### npm run-script
|
|
1066
|
+
|
|
1067
|
+
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
|
|
1068
|
+
`--` to stop the npm option parsing and pass through all the arguments.
|
|
1069
|
+
|
|
1070
|
+
The synopsis for [npm run-script](https://docs.npmjs.com/cli/v9/commands/npm-run-script) explicitly shows the `--` for this reason:
|
|
1071
|
+
|
|
1072
|
+
```console
|
|
1073
|
+
npm run-script <command> [-- <args>]
|
|
1074
|
+
```
|
|
1075
|
+
|
|
1064
1076
|
### Display error
|
|
1065
1077
|
|
|
1066
1078
|
This routine is available to invoke the Commander error handling for your own error conditions. (See also the next section about exit handling.)
|
|
@@ -1122,7 +1134,7 @@ There is more information available about:
|
|
|
1122
1134
|
|
|
1123
1135
|
## Support
|
|
1124
1136
|
|
|
1125
|
-
The current version of Commander is fully supported on Long Term Support versions of Node.js, and requires at least
|
|
1137
|
+
The current version of Commander is fully supported on Long Term Support versions of Node.js, and requires at least v16.
|
|
1126
1138
|
(For older versions of Node.js, use an older version of Commander.)
|
|
1127
1139
|
|
|
1128
1140
|
The main forum for free and community support is the project [Issues](https://github.com/tj/commander.js/issues) on GitHub.
|
|
@@ -330,7 +330,7 @@ class Command extends EventEmitter {
|
|
|
330
330
|
*/
|
|
331
331
|
|
|
332
332
|
arguments(names) {
|
|
333
|
-
names.split(/ +/).forEach((detail) => {
|
|
333
|
+
names.trim().split(/ +/).forEach((detail) => {
|
|
334
334
|
this.argument(detail);
|
|
335
335
|
});
|
|
336
336
|
return this;
|
|
@@ -1084,6 +1084,26 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1084
1084
|
return hookResult;
|
|
1085
1085
|
}
|
|
1086
1086
|
|
|
1087
|
+
/**
|
|
1088
|
+
* Invoke help directly if possible, or dispatch if necessary.
|
|
1089
|
+
* e.g. help foo
|
|
1090
|
+
*
|
|
1091
|
+
* @api private
|
|
1092
|
+
*/
|
|
1093
|
+
|
|
1094
|
+
_dispatchHelpCommand(subcommandName) {
|
|
1095
|
+
if (!subcommandName) {
|
|
1096
|
+
this.help();
|
|
1097
|
+
}
|
|
1098
|
+
const subCommand = this._findCommand(subcommandName);
|
|
1099
|
+
if (subCommand && !subCommand._executableHandler) {
|
|
1100
|
+
subCommand.help();
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
// Fallback to parsing the help flag to invoke the help.
|
|
1104
|
+
return this._dispatchSubcommand(subcommandName, [], [this._helpLongFlag]);
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1087
1107
|
/**
|
|
1088
1108
|
* Check this.args against expected this._args.
|
|
1089
1109
|
*
|
|
@@ -1248,10 +1268,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1248
1268
|
return this._dispatchSubcommand(operands[0], operands.slice(1), unknown);
|
|
1249
1269
|
}
|
|
1250
1270
|
if (this._hasImplicitHelpCommand() && operands[0] === this._helpCommandName) {
|
|
1251
|
-
|
|
1252
|
-
this.help();
|
|
1253
|
-
}
|
|
1254
|
-
return this._dispatchSubcommand(operands[1], [], [this._helpLongFlag]);
|
|
1271
|
+
return this._dispatchHelpCommand(operands[1]);
|
|
1255
1272
|
}
|
|
1256
1273
|
if (this._defaultCommandName) {
|
|
1257
1274
|
outputHelpIfRequested(this, unknown); // Run the help for default command from parent rather than passing to default command
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "commander",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "the complete solution for node.js command-line programs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"commander",
|
|
@@ -33,34 +33,44 @@
|
|
|
33
33
|
"lib/*.js",
|
|
34
34
|
"esm.mjs",
|
|
35
35
|
"typings/index.d.ts",
|
|
36
|
+
"typings/esm.d.mts",
|
|
36
37
|
"package-support.json"
|
|
37
38
|
],
|
|
38
39
|
"type": "commonjs",
|
|
39
40
|
"main": "./index.js",
|
|
40
41
|
"exports": {
|
|
41
42
|
".": {
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
"require": {
|
|
44
|
+
"types": "./typings/index.d.ts",
|
|
45
|
+
"default": "./index.js"
|
|
46
|
+
},
|
|
47
|
+
"import": {
|
|
48
|
+
"types": "./typings/esm.d.mts",
|
|
49
|
+
"default": "./esm.mjs"
|
|
50
|
+
},
|
|
51
|
+
"default": "./index.js"
|
|
45
52
|
},
|
|
46
|
-
"./esm.mjs":
|
|
53
|
+
"./esm.mjs": {
|
|
54
|
+
"types": "./typings/esm.d.mts",
|
|
55
|
+
"import": "./esm.mjs"
|
|
56
|
+
}
|
|
47
57
|
},
|
|
48
58
|
"devDependencies": {
|
|
49
59
|
"@types/jest": "^29.2.4",
|
|
50
|
-
"@types/node": "^
|
|
60
|
+
"@types/node": "^20.2.5",
|
|
51
61
|
"@typescript-eslint/eslint-plugin": "^5.47.1",
|
|
52
62
|
"@typescript-eslint/parser": "^5.47.1",
|
|
53
63
|
"eslint": "^8.30.0",
|
|
54
64
|
"eslint-config-standard": "^17.0.0",
|
|
55
|
-
"eslint-config-standard-with-typescript": "^
|
|
65
|
+
"eslint-config-standard-with-typescript": "^33.0.0",
|
|
56
66
|
"eslint-plugin-import": "^2.26.0",
|
|
57
67
|
"eslint-plugin-jest": "^27.1.7",
|
|
58
68
|
"eslint-plugin-n": "^15.6.0",
|
|
59
69
|
"eslint-plugin-promise": "^6.1.1",
|
|
60
70
|
"jest": "^29.3.1",
|
|
61
71
|
"ts-jest": "^29.0.3",
|
|
62
|
-
"tsd": "^0.
|
|
63
|
-
"typescript": "^
|
|
72
|
+
"tsd": "^0.28.1",
|
|
73
|
+
"typescript": "^5.0.4"
|
|
64
74
|
},
|
|
65
75
|
"types": "typings/index.d.ts",
|
|
66
76
|
"jest": {
|
|
@@ -74,7 +84,7 @@
|
|
|
74
84
|
]
|
|
75
85
|
},
|
|
76
86
|
"engines": {
|
|
77
|
-
"node": ">=
|
|
87
|
+
"node": ">=16"
|
|
78
88
|
},
|
|
79
89
|
"support": true
|
|
80
90
|
}
|
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/babel__core": "^7.20.1",
|
|
44
44
|
"@types/fs-extra": "^9.0.13",
|
|
45
|
-
"@types/jest": "^
|
|
45
|
+
"@types/jest": "^29",
|
|
46
46
|
"@types/node": "^16",
|
|
47
47
|
"@typescript-eslint/eslint-plugin": "^5",
|
|
48
48
|
"@typescript-eslint/parser": "^5",
|
|
@@ -50,24 +50,24 @@
|
|
|
50
50
|
"eslint-import-resolver-node": "^0.3.7",
|
|
51
51
|
"eslint-import-resolver-typescript": "^3.5.5",
|
|
52
52
|
"eslint-plugin-import": "^2.27.5",
|
|
53
|
-
"jest": "^
|
|
53
|
+
"jest": "^29",
|
|
54
54
|
"jest-junit": "^15",
|
|
55
55
|
"jsii": "5.x",
|
|
56
56
|
"jsii-diff": "^1.84.0",
|
|
57
|
-
"jsii-docgen": "^
|
|
57
|
+
"jsii-docgen": "^9.0.10",
|
|
58
58
|
"jsii-pacmak": "^1.84.0",
|
|
59
59
|
"npm-check-updates": "^16",
|
|
60
|
-
"projen": "^0.71.
|
|
60
|
+
"projen": "^0.71.111",
|
|
61
61
|
"standard-version": "^9",
|
|
62
|
-
"ts-jest": "^
|
|
62
|
+
"ts-jest": "^29",
|
|
63
63
|
"ts-node": "^10.9.1",
|
|
64
|
-
"typescript": "^
|
|
64
|
+
"typescript": "^5.1.3"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"projen": "^0.71.110"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"commander": "^
|
|
70
|
+
"commander": "^11.0.0",
|
|
71
71
|
"fs-extra": "^9.1.0"
|
|
72
72
|
},
|
|
73
73
|
"bundledDependencies": [
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
],
|
|
83
83
|
"main": "lib/index.js",
|
|
84
84
|
"license": "Apache-2.0",
|
|
85
|
-
"version": "0.1.
|
|
85
|
+
"version": "0.1.135",
|
|
86
86
|
"jest": {
|
|
87
87
|
"testMatch": [
|
|
88
88
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|