feat(install): use side effect cache when rebuild (#7003)

close #6890
close #6996
This commit is contained in:
Khải
2023-08-30 21:14:18 +07:00
committed by GitHub
parent 6abd24ef05
commit ef3609049f
3 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/plugin-commands-installation": patch
"pnpm": patch
---
Set `skipIfHasSideEffectsCache` to `true` when calling rebuild, fixing side effect caching issue when lockfile isn't shared [#6890](https://github.com/pnpm/pnpm/issues/6890).

View File

@@ -327,6 +327,7 @@ when running add/update with the --workspace option')
pending: true,
storeController: store.ctrl,
storeDir: store.dir,
skipIfHasSideEffectsCache: true,
}
)
}

View File

@@ -413,6 +413,7 @@ export async function recursive (
await rebuild.handler({
...opts,
pending: opts.pending === true,
skipIfHasSideEffectsCache: true,
}, [])
}