fix: check bin/ dir instead of pnpm.exe for self-update detection

On Windows pnpm self-update writes `.bin/bin/pnpm` (a JS launcher),
not `.bin/bin/pnpm.exe`, so the previous existsSync probe always
fell back to pnpmHome and the bin_dest output pointed at the
bootstrap pnpm. Check whether the `bin` directory itself exists.
This commit is contained in:
Zoltan Kochan
2026-05-11 13:41:06 +02:00
parent 6f51e58a4c
commit 29b3fcd571
2 changed files with 42 additions and 42 deletions

76
dist/index.js vendored

File diff suppressed because one or more lines are too long