fix: pnpm version management, when dangerouslyAllowAllBuilds is set to true (#9473)

close #9472
This commit is contained in:
Zoltan Kochan
2025-05-01 09:54:36 +02:00
committed by GitHub
parent 09cf46f67b
commit df8df8a0c1
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/tools.plugin-commands-self-updater": patch
"pnpm": patch
---
pnpm version management should work, when `dangerouslyAllowAllBuilds` is set to `true` [#9472](https://github.com/pnpm/pnpm/issues/9472).

View File

@@ -44,6 +44,7 @@ export async function installPnpmToTools (pnpmVersion: string, opts: SelfUpdateC
`${currentPkgName}@${pnpmVersion}`,
'--loglevel=error',
'--allow-build=@pnpm/exe',
'--no-dangerously-allow-all-builds',
// We want to avoid symlinks because of the rename step,
// which breaks the junctions on Windows.
'--config.node-linker=hoisted',