Skip to content

Commit 695ddb9

Browse files
committed
make pnpapi workaround platform-specific (#1656)
I'm not sure if this will fix anything, but it probably couldn't hurt.
1 parent ada73f9 commit 695ddb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/npm/node-platform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ by esbuild to install the correct binary executable for your current platform.`)
108108
}
109109
if (isYarnPnP) {
110110
const esbuildLibDir = path.dirname(require.resolve('esbuild'));
111-
const binTargetPath = path.join(esbuildLibDir, 'yarn-pnp-' + path.basename(subpath));
111+
const binTargetPath = path.join(esbuildLibDir, `pnpapi-${pkg}-${path.basename(subpath)}`);
112112
if (!fs.existsSync(binTargetPath)) {
113113
fs.copyFileSync(binPath, binTargetPath);
114114
fs.chmodSync(binTargetPath, 0o755);

0 commit comments

Comments
 (0)