@angular-devkit/schematics-cli 14.0.0-next.4 → 14.0.0-next.5
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/bin/schematics.js
CHANGED
|
@@ -26,9 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
__setModuleDefault(result, mod);
|
|
27
27
|
return result;
|
|
28
28
|
};
|
|
29
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
30
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31
|
-
};
|
|
32
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
30
|
exports.main = void 0;
|
|
34
31
|
// symbol polyfill must go first
|
|
@@ -39,7 +36,7 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
39
36
|
const tools_1 = require("@angular-devkit/schematics/tools");
|
|
40
37
|
const ansiColors = __importStar(require("ansi-colors"));
|
|
41
38
|
const inquirer = __importStar(require("inquirer"));
|
|
42
|
-
const yargs_parser_1 =
|
|
39
|
+
const yargs_parser_1 = __importStar(require("yargs-parser"));
|
|
43
40
|
/**
|
|
44
41
|
* Parse the name of schematic passed in argument, and return a {collection, schematic} named
|
|
45
42
|
* tuple. The user can pass in `collection-name:schematic-name`, and this function will either
|
|
@@ -332,21 +329,19 @@ function parseArgs(args) {
|
|
|
332
329
|
const schematicOptions = {};
|
|
333
330
|
const cliOptions = {};
|
|
334
331
|
const isCliOptions = (key) => booleanArgs.includes(key);
|
|
335
|
-
// Casting temporary until https://github.com/DefinitelyTyped/DefinitelyTyped/pull/59065 is merged and released.
|
|
336
|
-
const { camelCase, decamelize } = yargs_parser_1.default;
|
|
337
332
|
for (const [key, value] of Object.entries(options)) {
|
|
338
333
|
if (/[A-Z]/.test(key)) {
|
|
339
|
-
throw new Error(`Unknown argument ${key}. Did you mean ${decamelize(key)}?`);
|
|
334
|
+
throw new Error(`Unknown argument ${key}. Did you mean ${(0, yargs_parser_1.decamelize)(key)}?`);
|
|
340
335
|
}
|
|
341
336
|
if (isCliOptions(key)) {
|
|
342
337
|
cliOptions[key] = value;
|
|
343
338
|
}
|
|
344
339
|
else {
|
|
345
|
-
schematicOptions[camelCase(key)] = value;
|
|
340
|
+
schematicOptions[(0, yargs_parser_1.camelCase)(key)] = value;
|
|
346
341
|
}
|
|
347
342
|
}
|
|
348
343
|
return {
|
|
349
|
-
_,
|
|
344
|
+
_: _.map((v) => v.toString()),
|
|
350
345
|
schematicOptions,
|
|
351
346
|
cliOptions,
|
|
352
347
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/schematics-cli",
|
|
3
|
-
"version": "14.0.0-next.
|
|
3
|
+
"version": "14.0.0-next.5",
|
|
4
4
|
"description": "Angular Schematics - CLI",
|
|
5
5
|
"homepage": "https://github.com/angular/angular-cli",
|
|
6
6
|
"bin": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
],
|
|
22
22
|
"schematics": "./collection.json",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@angular-devkit/core": "14.0.0-next.
|
|
25
|
-
"@angular-devkit/schematics": "14.0.0-next.
|
|
24
|
+
"@angular-devkit/core": "14.0.0-next.5",
|
|
25
|
+
"@angular-devkit/schematics": "14.0.0-next.5",
|
|
26
26
|
"ansi-colors": "4.1.1",
|
|
27
|
-
"inquirer": "8.2.
|
|
27
|
+
"inquirer": "8.2.1",
|
|
28
28
|
"symbol-observable": "4.0.0",
|
|
29
29
|
"yargs-parser": "21.0.1"
|
|
30
30
|
},
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"url": "https://github.com/angular/angular-cli.git"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": "^
|
|
36
|
+
"node": "^14.15.0 || >=16.10.0",
|
|
37
37
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
38
38
|
"yarn": ">= 1.13.0"
|
|
39
39
|
},
|