@angular-devkit/schematics-cli 14.1.0-next.0 → 14.1.0-next.3
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
|
@@ -73,7 +73,7 @@ function _listSchematics(workflow, collectionName, logger) {
|
|
|
73
73
|
logger.info(collection.listSchematicNames().join('\n'));
|
|
74
74
|
}
|
|
75
75
|
catch (error) {
|
|
76
|
-
logger.fatal(error.message);
|
|
76
|
+
logger.fatal(error instanceof Error ? error.message : `${error}`);
|
|
77
77
|
return 1;
|
|
78
78
|
}
|
|
79
79
|
return 0;
|
|
@@ -121,7 +121,6 @@ function _createPromptProvider() {
|
|
|
121
121
|
async function main({ args, stdout = process.stdout, stderr = process.stderr, }) {
|
|
122
122
|
const { cliOptions, schematicOptions, _ } = parseArgs(args);
|
|
123
123
|
// Create a separate instance to prevent unintended global changes to the color configuration
|
|
124
|
-
// Create function is not defined in the typings. See: https://github.com/doowb/ansi-colors/pull/44
|
|
125
124
|
const colors = ansiColors.create();
|
|
126
125
|
/** Create the DevKit Logger used through the CLI. */
|
|
127
126
|
const logger = (0, node_1.createConsoleLogger)(!!cliOptions.verbose, stdout, stderr, {
|
|
@@ -258,11 +257,11 @@ async function main({ args, stdout = process.stdout, stderr = process.stderr, })
|
|
|
258
257
|
// "See above" because we already printed the error.
|
|
259
258
|
logger.fatal('The Schematic workflow failed. See above.');
|
|
260
259
|
}
|
|
261
|
-
else if (debug) {
|
|
260
|
+
else if (debug && err instanceof Error) {
|
|
262
261
|
logger.fatal(`An error occured:\n${err.stack}`);
|
|
263
262
|
}
|
|
264
263
|
else {
|
|
265
|
-
logger.fatal(`Error: ${err.message}`);
|
|
264
|
+
logger.fatal(`Error: ${err instanceof Error ? err.message : err}`);
|
|
266
265
|
}
|
|
267
266
|
return 1;
|
|
268
267
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/schematics-cli",
|
|
3
|
-
"version": "14.1.0-next.
|
|
3
|
+
"version": "14.1.0-next.3",
|
|
4
4
|
"description": "Angular Schematics - CLI",
|
|
5
5
|
"homepage": "https://github.com/angular/angular-cli",
|
|
6
6
|
"bin": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
],
|
|
22
22
|
"schematics": "./collection.json",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@angular-devkit/core": "14.1.0-next.
|
|
25
|
-
"@angular-devkit/schematics": "14.1.0-next.
|
|
24
|
+
"@angular-devkit/core": "14.1.0-next.3",
|
|
25
|
+
"@angular-devkit/schematics": "14.1.0-next.3",
|
|
26
26
|
"ansi-colors": "4.1.3",
|
|
27
27
|
"inquirer": "8.2.4",
|
|
28
28
|
"symbol-observable": "4.0.0",
|