diff --git a/dist/index.js b/dist/index.js index 6a45aa2..ce5084c 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 90d24dd..19b0c0d 100644 --- a/src/install-pnpm/run.ts +++ b/src/install-pnpm/run.ts @@ -30,9 +30,24 @@ export async function runSelfInstaller(inputs: Inputs): Promise { } const pnpmHome = path.join(dest, 'node_modules', '.bin') + console.log(`Adding to PATH: ${pnpmHome}`) addPath(pnpmHome) exportVariable('PNPM_HOME', pnpmHome) + // Debug: list .bin contents + const { readdirSync, lstatSync } = await import('fs') + try { + const bins = readdirSync(pnpmHome) + console.log(`.bin contents: ${bins.join(', ')}`) + for (const bin of bins) { + const binPath = path.join(pnpmHome, bin) + const stat = lstatSync(binPath) + console.log(` ${bin}: symlink=${stat.isSymbolicLink()}, mode=${stat.mode.toString(8)}`) + } + } catch (e) { + console.log(`Failed to list .bin: ${e}`) + } + const bootstrapPnpm = standalone ? path.join(dest, 'node_modules', '@pnpm', 'exe', 'pnpm') : path.join(dest, 'node_modules', 'pnpm', 'bin', 'pnpm.cjs')