Skip to content

Commit

Permalink
fix(core): Ensure when converting to monorepo standalone libs have a …
Browse files Browse the repository at this point in the history
…readable name (#18887)
  • Loading branch information
ndcunningham authored Aug 29, 2023
1 parent b5380d0 commit c48f3aa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export async function monorepoGenerator(tree: Tree, options: {}) {
await moveGenerator(tree, {
projectName: project.name,
newProjectName:
project.projectType === 'application' ? project.name : project.root,
project.projectType === 'application' || project.root === '.'
? project.name
: project.root,
destination:
project.projectType === 'application'
? joinPathFragments(appsDir, project.name)
Expand Down

0 comments on commit c48f3aa

Please sign in to comment.