Skip to content

Commit 5942885

Browse files
brandonrobertsMikeRyanDev
authored andcommitted
fix(Schematics): Add check for app/lib to project helper function
1 parent cdd247e commit 5942885

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/schematics/src/utility/project.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ export function getProjectPath(
1818
}
1919

2020
if (options.path === undefined) {
21-
return `/${project.root}/src/app`;
21+
const projectDirName =
22+
project.projectType === 'application' ? 'app' : 'lib';
23+
24+
return `${project.root ? `/${project.root}` : ''}/src/${projectDirName}`;
2225
}
2326

2427
return options.path;

0 commit comments

Comments
 (0)