fix(plugins): ignore inherited npm dry-run for runtime deps

This commit is contained in:
Peter Steinberger
2026-04-28 02:36:19 +01:00
parent 13ff3142bd
commit 7d4da9c610
7 changed files with 35 additions and 0 deletions

View File

@@ -142,10 +142,12 @@ describe("bundled plugin postinstall", () => {
expect(
createBundledRuntimeDependencyInstallEnv({
HOME: "/tmp/home",
npm_config_dry_run: "true",
npm_config_prefix: "/opt/homebrew",
}),
).toEqual({
HOME: "/tmp/home",
npm_config_dry_run: "false",
npm_config_legacy_peer_deps: "true",
npm_config_package_lock: "false",
npm_config_save: "false",