mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-24 23:58:07 -05:00
feat(install): use side effect cache when rebuild (#7003)
close #6890 close #6996
This commit is contained in:
6
.changeset/eighty-squids-mate.md
Normal file
6
.changeset/eighty-squids-mate.md
Normal 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,
|
||||
}, [])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user