Skip to content

Commit

Permalink
fix(nx): cache generation issue due to wrong shell command (#2182)
Browse files Browse the repository at this point in the history
  • Loading branch information
overbit authored Nov 30, 2023
1 parent 443fd92 commit 0fdb303
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/nx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,12 @@ const preProcessProjects = async (
).workspaceLayout,
};
const searchFolders =
appsDir === libsDir ? appsDir : `${appsDir} ${libsDir}`;
appsDir === libsDir ? [appsDir] : [appsDir, libsDir];

nxProjectPathCache = (
await executeShellCommand({
command: "find",
args: [searchFolders, "-name", "project.json"],
args: [...searchFolders, "-name", "project.json"],
})
).stdout
.split("\n")
Expand Down

0 comments on commit 0fdb303

Please sign in to comment.