File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/@angular/cli/commands Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export default class NewCommand extends SchematicCommand {
27
27
description : 'Schematics collection to use.'
28
28
}
29
29
] ;
30
+ private schematicName = 'ng-new' ;
30
31
31
32
private initialized = false ;
32
33
public initialize ( options : any ) {
@@ -37,11 +38,10 @@ export default class NewCommand extends SchematicCommand {
37
38
this . initialized = true ;
38
39
39
40
const collectionName = this . parseCollectionName ( options ) ;
40
- const schematicName = 'application' ;
41
41
42
42
return this . getOptions ( {
43
- schematicName,
44
- collectionName
43
+ schematicName : this . schematicName ,
44
+ collectionName,
45
45
} )
46
46
. then ( ( schematicOptions ) => {
47
47
this . options = this . options . concat ( schematicOptions . options ) ;
@@ -75,7 +75,7 @@ export default class NewCommand extends SchematicCommand {
75
75
76
76
return this . runSchematic ( {
77
77
collectionName : collectionName ,
78
- schematicName : 'ng-new' ,
78
+ schematicName : this . schematicName ,
79
79
schematicOptions : options ,
80
80
debug : options . debug ,
81
81
dryRun : options . dryRun ,
You can’t perform that action at this time.
0 commit comments