fix: fall back to pnpm shim in same directory for self-update bin/

ensureAliasLinks had a hardcoded relative path to @pnpm/exe/pnpm which
only works from node_modules/.bin/. In self-update's bin/ directory
($PNPM_HOME/bin/), that path doesn't resolve. Now falls back to using
the pnpm shim in the same directory when the package path doesn't exist.
This commit is contained in:
Zoltan Kochan
2026-03-26 20:24:03 +01:00
parent 76bfe9d01c
commit aec59b9f6c
3 changed files with 153 additions and 114 deletions

208
dist/index.js vendored

File diff suppressed because one or more lines are too long