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 7
7
*/
8
8
import { virtualFs , workspaces } from '@angular-devkit/core' ;
9
9
import { Rule , Tree } from '@angular-devkit/schematics' ;
10
+ import { ProjectType } from './workspace-models' ;
10
11
11
12
function createHost ( tree : Tree ) : workspaces . WorkspaceHost {
12
13
return {
@@ -74,7 +75,7 @@ export async function getWorkspace(tree: Tree, path = '/') {
74
75
*/
75
76
export function buildDefaultPath ( project : workspaces . ProjectDefinition ) : string {
76
77
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' ;
78
79
79
80
return `${ root } ${ projectDirName } ` ;
80
81
}
You can’t perform that action at this time.
0 commit comments