diff --git a/packages/schematics/angular/application/index.ts b/packages/schematics/angular/application/index.ts index cb6408551c54..0a29695765b2 100644 --- a/packages/schematics/angular/application/index.ts +++ b/packages/schematics/angular/application/index.ts @@ -306,11 +306,6 @@ export default function (options: ApplicationOptions): Rule { throw new SchematicsException(`Invalid options, "name" is required.`); } validateProjectName(options.name); - options.prefix = options.prefix || 'app'; - // This line and the one above shouldn't be needed, but at the moment they are. - // This is because the default value defined in the schema.json file is not - // correctly set when this schematic is run from another schematic. - options.style = options.style || Style.Css; const appRootSelector = `${options.prefix}-root`; const componentOptions: Partial = !options.minimal ? { diff --git a/packages/schematics/angular/library/index.ts b/packages/schematics/angular/library/index.ts index 8ae1642f2db4..9082711dc62f 100644 --- a/packages/schematics/angular/library/index.ts +++ b/packages/schematics/angular/library/index.ts @@ -139,7 +139,7 @@ function addAppToWorkspaceFile( root: projectRoot, sourceRoot: `${projectRoot}/src`, projectType: ProjectType.Library, - prefix: options.prefix || 'lib', + prefix: options.prefix, targets: { build: { builder: Builders.NgPackagr, @@ -178,7 +178,7 @@ export default function (options: LibraryOptions): Rule { if (!options.name) { throw new SchematicsException(`Invalid options, "name" is required.`); } - const prefix = options.prefix || 'lib'; + const prefix = options.prefix; validateProjectName(options.name);