From 46310618b874b98db87d36eaac819ccaaf995e1f Mon Sep 17 00:00:00 2001 From: Mike Brocchi Date: Mon, 14 May 2018 14:14:14 -0400 Subject: [PATCH] fix(@angular/cli): Fix parsing of new options fixes #10802 --- packages/@angular/cli/commands/new.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/@angular/cli/commands/new.ts b/packages/@angular/cli/commands/new.ts index 124443e583..e532ce3ea3 100644 --- a/packages/@angular/cli/commands/new.ts +++ b/packages/@angular/cli/commands/new.ts @@ -27,6 +27,7 @@ export default class NewCommand extends SchematicCommand { description: 'Schematics collection to use.', }, ]; + private schematicName = 'ng-new'; private initialized = false; public initialize(options: any) { @@ -37,10 +38,9 @@ export default class NewCommand extends SchematicCommand { this.initialized = true; const collectionName = this.parseCollectionName(options); - const schematicName = 'application'; return this.getOptions({ - schematicName, + schematicName: this.schematicName, collectionName, }) .then((schematicOptions) => { @@ -75,7 +75,7 @@ export default class NewCommand extends SchematicCommand { return this.runSchematic({ collectionName: collectionName, - schematicName: 'ng-new', + schematicName: this.schematicName, schematicOptions: options, debug: options.debug, dryRun: options.dryRun,