Skip to content

Commit 0820650

Browse files
committed
fix(@angular/cli): Fix parsing of new options
fixes #10802
1 parent 81393b7 commit 0820650

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 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,11 +38,10 @@ 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,
44-
collectionName
43+
schematicName: this.schematicName,
44+
collectionName,
4545
})
4646
.then((schematicOptions) => {
4747
this.options = this.options.concat(schematicOptions.options);
@@ -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)