Skip to content

Releases

plugin-materialize-virtual-workspaces-v1.3

Choose a tag to compare

Skip already-existing virtual workspace symlinks (ignore EEXIST) instead of aborting the loop and warning, and wrap the
afterAllInstalled hook so unexpected filesystem errors emit a warning rather than crashing yarn install.

plugin-materialize-virtual-workspaces-v1.2: Only remove virtual slug subdirs instead of rm -rf'ing virtualFolder

Choose a tag to compare

Docs

https://github.com/dobesv/berry/tree/e75f6ae2f5a062f0399cc8a358d91499123830ad/packages/plugin-materialize-virtual-workspaces#readme

Workaround for

yarnpkg/berry#6871 — node --watch (and other file-watching / dependency-analysis tools) don't see changes in PnP workspaces with peer dependencies, because the resolved path lives under .yarn/__virtual__ and that path doesn't exist on disk. This plugin creates real symlinks at those paths after every install.

Changes since v1.1

  • Tighten cleanup. Previous versions removed the whole virtualFolder (default .yarn/__virtual__) with rm -rf at the start of every install. That's correct under default config but offers no guard against a misconfigured virtualFolder. v1.2 lists virtualFolder and removes only entries matching the slug pattern (-virtual-<hex>$). Standard .yarn siblings (cache, plugins, sdks, install-state.gz, …) don't match, so even if the config ever resolves to .yarn itself, nothing important would be deleted.

Installation

yarn plugin import https://github.com/dobesv/berry/releases/download/plugin-materialize-virtual-workspaces-v1.2/plugin-materialize-virtual-workspaces.js

plugin-materialize-virtual-workspaces-v1.1: Bypass PnP-patched fs when creating virtual workspace symlinks

Choose a tag to compare

Docs

https://github.com/dobesv/berry/tree/8f5aaacfdf937523fa52ae6dc77ff6db689ca7d4/packages/plugin-materialize-virtual-workspaces#readme

Workaround for

yarnpkg/berry#6871 — node --watch (and other file-watching / dependency-analysis tools) don't see changes in PnP workspaces with peer dependencies, because the resolved path lives under .yarn/__virtual__ and that path doesn't exist on disk. This plugin creates real symlinks at those paths after every install.

Changes since v1.0

  • Bypass PnP-patched fs when creating virtual workspace symlinks. v1.0 routed its calls through @yarnpkg/fslib's xfs, which Yarn's PnP runtime had patched to remap .yarn/__virtual__ paths back to their real targets — defeating the entire point of the plugin and producing EEXIST errors in real monorepos. v1.1 uses node:fs directly. (yarn install now succeeds on monorepos with many virtualized workspaces.)

Installation

yarn plugin import https://github.com/dobesv/berry/releases/download/plugin-materialize-virtual-workspaces-v1.1/plugin-materialize-virtual-workspaces.js

plugin-materialize-virtual-workspaces-v1.0: Add plugin to materialize virtual workspaces as real symlinks

Choose a tag to compare

Docs

https://github.com/dobesv/berry/tree/2569107b22f56718e92fb8b80a148758dff7b377/packages/plugin-materialize-virtual-workspaces#readme

Workaround for

yarnpkg/berry#6871 — node --watch (and other file-watching / dependency-analysis tools) don't see changes in PnP workspaces with peer dependencies, because the resolved path lives under .yarn/__virtual__ and that path doesn't exist on disk. This plugin creates real symlinks at those paths after every install.

Installation

yarn plugin import https://github.com/dobesv/berry/releases/download/plugin-materialize-virtual-workspaces-v1.0/plugin-materialize-virtual-workspaces.js

plugin-check-for-multiple-instances-v1.3: Release v1.3

Choose a tag to compare

Docs

https://github.com/dobesv/berry/tree/6bcbb4023ffb13615595787aa9c25e4f87d72807/packages/plugin-check-for-multiple-instances#readme

Changes

  • Update documentation and bump version to 1.3.0 (6bcbb40)
  • Rename plugin, fix up docs (d6806dd)

Installation

yarn plugin import https://github.com/dobesv/berry/releases/download/plugin-check-for-multiple-instances-v1.3/plugin-check-for-multiple-instances.js

plugin-prevent-multiple-instances v1

Choose a tag to compare

Docs

https://github.com/dobesv/berry/tree/plugin-prevent-multiple-instances/packages/plugin-prevent-multiple-instances

Installation

yarn plugin install https://github.com/dobesv/berry/releases/download/plugin-prevent-multiple-instances-v1/plugin-prevent-multiple-instances.js

v1.2

Choose a tag to compare

@dobesv dobesv released this 10 Jun 01:17
1820465

Docs

https://github.com/dobesv/berry/tree/plugin-prevent-multiple-instances/packages/plugin-prevent-multiple-instances

Changes

  • Removed a feature to match a "virtual:*" pattern - it turns out we only want to match virtual instances anyway.

Installation

yarn plugin import https://github.com/dobesv/berry/releases/download/plugin-prevent-multiple-instances-v1.2/plugin-prevent-multiple-instances.js

plugin-prevent-multiple-instances v1.1

Choose a tag to compare

@dobesv dobesv released this 02 Jun 21:08
1820465

Docs

https://github.com/dobesv/berry/tree/plugin-prevent-multiple-instances/packages/plugin-prevent-multiple-instances

Changes

  • Don't emit an error in yarn install if there is an issue, that causes issues with yarn workspaces focus. Instead emit a warning. If people want to block this issue in CI they can run yarn check-for-multiple-versions and it'll exit error if it finds an issue

Installation

yarn plugin import https://github.com/dobesv/berry/releases/download/plugin-prevent-multiple-instances-v1.1/plugin-prevent-multiple-instances.js

plugin-check-for-multiple-instances v1.2

Choose a tag to compare

@dobesv dobesv released this 10 Jun 03:03
1820465

Docs

https://github.com/dobesv/berry/tree/d6806dd0896950cdf6bccf1ebdc75a3a41f25afe/packages/plugin-check-for-multiple-instances#readme

Changes

  • Renamed to plugin-check-for-multiple-instances
  • Clean up docs

Installation

yarn plugin import https://github.com/dobesv/berry/releases/download/plugin-check-for-multiple-instances-v1.2/plugin-check-for-multiple-instances.js