Skip to content

Commit

Permalink
fix(core): normalize project config paths to properly match them when…
Browse files Browse the repository at this point in the history
… combining them (#15149)
  • Loading branch information
leosvelperez authored Feb 21, 2023
1 parent 580459b commit 3b056e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/nx/src/generators/utils/project-configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -218,7 +220,7 @@ function findCreatedProjectFiles(tree: Tree) {
}
}
}
return deduplicateProjectFiles(createdProjectFiles);
return deduplicateProjectFiles(createdProjectFiles).map(normalizePath);
}

/**
Expand Down

0 comments on commit 3b056e5

Please sign in to comment.