mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-30 10:38:13 -05:00
fix: running an install after the fetch command should hoist all dependencies (#9690)
close #9689
This commit is contained in:
11
.changeset/rude-needles-wave.md
Normal file
11
.changeset/rude-needles-wave.md
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-installation": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
Running `pnpm install` after `pnpm fetch` should hoist all dependencies that need to be hoisted.
|
||||
Fixes a regression introduced in [v10.12.2] by [#9648]; resolves [#9689].
|
||||
|
||||
[v10.12.2]: https://github.com/pnpm/pnpm/releases/tag/v10.12.2Add commentMore actions
|
||||
[#9648]: https://github.com/pnpm/pnpm/pull/9648
|
||||
[#9689]: https://github.com/pnpm/pnpm/issues/9689
|
||||
@@ -69,5 +69,10 @@ export async function handler (opts: FetchCommandOptions): Promise<void> {
|
||||
pruneStore: true,
|
||||
storeController: store.ctrl,
|
||||
storeDir: store.dir,
|
||||
// Hoisting is skipped anyway,
|
||||
// so we store these empty patterns in node_modules/.modules.yaml
|
||||
// to let the subsequent install know that hoisting should be performed.
|
||||
hoistPattern: [],
|
||||
publicHoistPattern: [],
|
||||
} as InstallOptions)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user