Skip to content

Commit

Permalink
make pnpapi workaround platform-specific (#1656)
Browse files Browse the repository at this point in the history
I'm not sure if this will fix anything, but it probably couldn't hurt.
  • Loading branch information
evanw committed Oct 5, 2021
1 parent ada73f9 commit 695ddb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/npm/node-platform.ts
Expand Up @@ -108,7 +108,7 @@ by esbuild to install the correct binary executable for your current platform.`)
}
if (isYarnPnP) {
const esbuildLibDir = path.dirname(require.resolve('esbuild'));
const binTargetPath = path.join(esbuildLibDir, 'yarn-pnp-' + path.basename(subpath));
const binTargetPath = path.join(esbuildLibDir, `pnpapi-${pkg}-${path.basename(subpath)}`);
if (!fs.existsSync(binTargetPath)) {
fs.copyFileSync(binPath, binTargetPath);
fs.chmodSync(binTargetPath, 0o755);
Expand Down

0 comments on commit 695ddb9

Please sign in to comment.