File tree 2 files changed +2
-2
lines changed
packages/schematics/angular
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ export default function (options: ApplicationOptions): Rule {
324
324
} ;
325
325
326
326
const workspace = getWorkspace ( host ) ;
327
- let newProjectRoot = workspace . newProjectRoot ;
327
+ let newProjectRoot = workspace . newProjectRoot || 'projects' ;
328
328
let appDir = `${ newProjectRoot } /${ options . name } ` ;
329
329
let sourceRoot = `${ appDir } /src` ;
330
330
let sourceDir = `${ sourceRoot } /app` ;
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ export default function (options: LibraryOptions): Rule {
193
193
}
194
194
195
195
const workspace = getWorkspace ( host ) ;
196
- const newProjectRoot = workspace . newProjectRoot ;
196
+ const newProjectRoot = workspace . newProjectRoot || 'projects' ;
197
197
198
198
const scopeFolder = scopeName ? strings . dasherize ( scopeName ) + '/' : '' ;
199
199
const folderName = `${ scopeFolder } ${ strings . dasherize ( options . name ) } ` ;
You can’t perform that action at this time.
0 commit comments