mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-13 19:16:21 -04:00
fix: pnpm version management, when dangerouslyAllowAllBuilds is set to true (#9473)
close #9472
This commit is contained in:
6
.changeset/curly-paths-wash.md
Normal file
6
.changeset/curly-paths-wash.md
Normal 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).
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user