File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
packages/schematics/angular Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -306,11 +306,6 @@ export default function (options: ApplicationOptions): Rule {
306
306
throw new SchematicsException ( `Invalid options, "name" is required.` ) ;
307
307
}
308
308
validateProjectName ( options . name ) ;
309
- options . prefix = options . prefix || 'app' ;
310
- // This line and the one above shouldn't be needed, but at the moment they are.
311
- // This is because the default value defined in the schema.json file is not
312
- // correctly set when this schematic is run from another schematic.
313
- options . style = options . style || Style . Css ;
314
309
const appRootSelector = `${ options . prefix } -root` ;
315
310
const componentOptions : Partial < ComponentOptions > = ! options . minimal ?
316
311
{
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ function addAppToWorkspaceFile(
139
139
root : projectRoot ,
140
140
sourceRoot : `${ projectRoot } /src` ,
141
141
projectType : ProjectType . Library ,
142
- prefix : options . prefix || 'lib' ,
142
+ prefix : options . prefix ,
143
143
targets : {
144
144
build : {
145
145
builder : Builders . NgPackagr ,
@@ -178,7 +178,7 @@ export default function (options: LibraryOptions): Rule {
178
178
if ( ! options . name ) {
179
179
throw new SchematicsException ( `Invalid options, "name" is required.` ) ;
180
180
}
181
- const prefix = options . prefix || 'lib' ;
181
+ const prefix = options . prefix ;
182
182
183
183
validateProjectName ( options . name ) ;
184
184
You can’t perform that action at this time.
0 commit comments