File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/schematics/angular Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ export default function (options: ApplicationOptions): Rule {
326326 } ;
327327
328328 const workspace = getWorkspace ( host ) ;
329- let newProjectRoot = workspace . newProjectRoot ;
329+ let newProjectRoot = workspace . newProjectRoot || 'projects' ;
330330 let appDir = `${ newProjectRoot } /${ options . name } ` ;
331331 let sourceRoot = `${ appDir } /src` ;
332332 let sourceDir = `${ sourceRoot } /app` ;
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ export default function (options: LibraryOptions): Rule {
193193 }
194194
195195 const workspace = getWorkspace ( host ) ;
196- const newProjectRoot = workspace . newProjectRoot ;
196+ const newProjectRoot = workspace . newProjectRoot || 'projects' ;
197197
198198 const scopeFolder = scopeName ? strings . dasherize ( scopeName ) + '/' : '' ;
199199 const folderName = `${ scopeFolder } ${ strings . dasherize ( options . name ) } ` ;
You can’t perform that action at this time.
0 commit comments