From 3b056e51f520956b5dcca3da36758b8fa44ad4bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leosvel=20P=C3=A9rez=20Espinosa?= Date: Tue, 21 Feb 2023 15:23:19 +0000 Subject: [PATCH] fix(core): normalize project config paths to properly match them when combining them (#15149) --- packages/nx/src/generators/utils/project-configuration.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/nx/src/generators/utils/project-configuration.ts b/packages/nx/src/generators/utils/project-configuration.ts index 7f359ce964..1e54cb119e 100644 --- a/packages/nx/src/generators/utils/project-configuration.ts +++ b/packages/nx/src/generators/utils/project-configuration.ts @@ -180,7 +180,9 @@ function readAndCombineAllProjectConfigurations(tree: Tree): { } { const nxJson = readNxJson(tree); - const globbedFiles = globForProjectFiles(tree.root, nxJson); + const globbedFiles = globForProjectFiles(tree.root, nxJson).map( + normalizePath + ); const createdFiles = findCreatedProjectFiles(tree); const deletedFiles = findDeletedProjectFiles(tree); const projectFiles = [...globbedFiles, ...createdFiles].filter( @@ -218,7 +220,7 @@ function findCreatedProjectFiles(tree: Tree) { } } } - return deduplicateProjectFiles(createdProjectFiles); + return deduplicateProjectFiles(createdProjectFiles).map(normalizePath); } /**