From 4c6c26a7e84bc0ef38007aef9a152f831ed17b9a 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 5cb6741619..ecaad60ae4 100644 --- a/pkg-manager/plugin-commands-installation/src/install.ts +++ b/pkg-manager/plugin-commands-installation/src/install.ts @@ -274,6 +274,7 @@ export type InstallCommandOptions = Pick