Skip to content

Commit 4631061

Browse files
Broccohansl
authored andcommitted
fix(@angular/cli): Fix parsing of new options
fixes #10802
1 parent 77610d5 commit 4631061

File tree

1 file changed

+3
-3
lines changed
  • packages/@angular/cli/commands

1 file changed

+3
-3
lines changed

packages/@angular/cli/commands/new.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default class NewCommand extends SchematicCommand {
2727
description: 'Schematics collection to use.',
2828
},
2929
];
30+
private schematicName = 'ng-new';
3031

3132
private initialized = false;
3233
public initialize(options: any) {
@@ -37,10 +38,9 @@ export default class NewCommand extends SchematicCommand {
3738
this.initialized = true;
3839

3940
const collectionName = this.parseCollectionName(options);
40-
const schematicName = 'application';
4141

4242
return this.getOptions({
43-
schematicName,
43+
schematicName: this.schematicName,
4444
collectionName,
4545
})
4646
.then((schematicOptions) => {
@@ -75,7 +75,7 @@ export default class NewCommand extends SchematicCommand {
7575

7676
return this.runSchematic({
7777
collectionName: collectionName,
78-
schematicName: 'ng-new',
78+
schematicName: this.schematicName,
7979
schematicOptions: options,
8080
debug: options.debug,
8181
dryRun: options.dryRun,

0 commit comments

Comments
 (0)