Skip to content

Commit

Permalink
fix(Schematics): Add check for app/lib to project helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts authored and MikeRyanDev committed May 1, 2018
1 parent cdd247e commit 5942885
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/schematics/src/utility/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ export function getProjectPath(
}

if (options.path === undefined) {
return `/${project.root}/src/app`;
const projectDirName =
project.projectType === 'application' ? 'app' : 'lib';

return `${project.root ? `/${project.root}` : ''}/src/${projectDirName}`;
}

return options.path;
Expand Down

0 comments on commit 5942885

Please sign in to comment.