Skip to content

Commit

Permalink
fix: Yarn workspace incorrectly resolves node_modules path during scr…
Browse files Browse the repository at this point in the history
…ipt execution (fixes #4564)
  • Loading branch information
nonara committed Jul 6, 2024
1 parent 7cafa51 commit f4acb79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util/execute-lifecycle-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ export async function makeEnv(
pathParts.unshift(path.join(config.workspaceRootFolder, binFolder));
}
pathParts.unshift(path.join(config.linkFolder, binFolder));
pathParts.unshift(path.join(cwd, binFolder));

const realBinFolder = await fs.realpath(path.join(cwd, binFolder));
pathParts.unshift(realBinFolder);
}

let pnpFile;
Expand Down

0 comments on commit f4acb79

Please sign in to comment.