From 4794c61dd1ef144925aec0cc0f5b219124fd150b Mon Sep 17 00:00:00 2001 From: Brandon Cheng Date: Tue, 10 Feb 2026 20:19:43 -0500 Subject: [PATCH] fix: disable global virtual store during `pnpm deploy` (#10577) --- .changeset/bold-words-give.md | 8 ++++++++ pkg-manager/plugin-commands-installation/src/install.ts | 1 + .../plugin-commands-installation/src/installDeps.ts | 1 + releasing/plugin-commands-deploy/src/deploy.ts | 6 ++++++ 4 files changed, 16 insertions(+) create mode 100644 .changeset/bold-words-give.md diff --git a/.changeset/bold-words-give.md b/.changeset/bold-words-give.md new file mode 100644 index 0000000000..561d9e5329 --- /dev/null +++ b/.changeset/bold-words-give.md @@ -0,0 +1,8 @@ +--- +"@pnpm/plugin-commands-installation": patch +"@pnpm/plugin-commands-deploy": patch +pnpm: patch +--- + +When the [`enableGlobalVirtualStore`](https://pnpm.io/settings#enableglobalvirtualstore) option is set, the `pnpm deploy` command would incorrectly create symlinks to the global virtual store. To keep the deploy directory self-contained, `pnpm deploy` now ignores this setting and always creates a localized virtual store within the deploy directory. + diff --git a/pkg-manager/plugin-commands-installation/src/install.ts b/pkg-manager/plugin-commands-installation/src/install.ts index 6688b37732..3a7ac2889d 100644 --- a/pkg-manager/plugin-commands-installation/src/install.ts +++ b/pkg-manager/plugin-commands-installation/src/install.ts @@ -285,6 +285,7 @@ export type InstallCommandOptions = Pick