Compare commits

...

2 Commits

Author SHA1 Message Date
Zoltan Kochan
545cf2ca6d
Merge c3b2a5fad6 into fc06bc1257 2026-03-17 00:45:38 +00:00
Zoltan Kochan
c3b2a5fad6
debug: add logging to diagnose pnpm not found on PATH
Log .bin directory contents after npm ci to understand why
pnpm binary is not found in subsequent CI steps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-17 01:45:30 +01:00
2 changed files with 15 additions and 0 deletions

BIN
dist/index.js vendored

Binary file not shown.

View File

@ -30,9 +30,24 @@ export async function runSelfInstaller(inputs: Inputs): Promise<number> {
}
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')