fix(core): Ensure when converting to monorepo standalone libs have a readable name (#18887)

This commit is contained in:
Nicholas Cunningham 2023-08-29 10:57:03 -06:00 committed by GitHub
parent b5380d0847
commit c48f3aa319
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)