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

close #6890
close #6996
This commit is contained in:
Khải authored and GitHub committed 2023-08-30 17:14:18 +03:00
1 parent 6abd24ef05
commit ef3609049f
3 files changed
+8

No files matched your search

+6
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).
@@ -327,6 +327,7 @@ when running add/update with the --workspace option')
pending: true,
storeController: store.ctrl,
storeDir: store.dir,
skipIfHasSideEffectsCache: true,
}
)
}
@@ -413,6 +413,7 @@ export async function recursive (
await rebuild.handler({
...opts,
pending: opts.pending === true,
skipIfHasSideEffectsCache: true,
}, [])
}