File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/schematics/angular/utility Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 77 */
88import { virtualFs , workspaces } from '@angular-devkit/core' ;
99import { Rule , Tree } from '@angular-devkit/schematics' ;
10+ import { ProjectType } from './workspace-models' ;
1011
1112function createHost ( tree : Tree ) : workspaces . WorkspaceHost {
1213 return {
@@ -74,7 +75,7 @@ export async function getWorkspace(tree: Tree, path = '/') {
7475 */
7576export function buildDefaultPath ( project : workspaces . ProjectDefinition ) : string {
7677 const root = project . sourceRoot ? `/${ project . sourceRoot } /` : `/${ project . root } /src/` ;
77- const projectDirName = project . extensions [ 'projectType' ] === 'application' ? 'app' : 'lib' ;
78+ const projectDirName = project . extensions [ 'projectType' ] === ProjectType . Application ? 'app' : 'lib' ;
7879
7980 return `${ root } ${ projectDirName } ` ;
8081}
You can’t perform that action at this time.
0 commit comments