diff --git a/dist/index.js b/dist/index.js index fb2d3d7..0319f35 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/src/install-pnpm/run.ts b/src/install-pnpm/run.ts index 69d6c0c..0c20f6d 100644 --- a/src/install-pnpm/run.ts +++ b/src/install-pnpm/run.ts @@ -31,6 +31,7 @@ export async function runSelfInstaller(inputs: Inputs): Promise { const pnpmHome = path.join(dest, 'node_modules', '.bin') addPath(pnpmHome) + addPath(path.join(pnpmHome, 'bin')) exportVariable('PNPM_HOME', pnpmHome) // Ensure pnpm bin link exists — npm ci sometimes doesn't create it diff --git a/src/utils/index.ts b/src/utils/index.ts index efc5ea1..2d83874 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -6,5 +6,5 @@ export const getBinDest = (inputs: Inputs): string => path.join(inputs.dest, 'no export const patchPnpmEnv = (inputs: Inputs): NodeJS.ProcessEnv => ({ ...process.env, - PATH: getBinDest(inputs) + path.delimiter + process.env.PATH, + PATH: path.join(getBinDest(inputs), 'bin') + path.delimiter + getBinDest(inputs) + path.delimiter + process.env.PATH, })