fix(core): normalize project config paths to properly match them when combining them (#15149)

This commit is contained in:
Leosvel Pérez Espinosa 2023-02-21 15:23:19 +00:00 committed by GitHub
parent 580459bccb
commit 3b056e51f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
/**