Repository navigation
Releases
plugin-materialize-virtual-workspaces-v1.3
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
Docs
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__) withrm -rfat the start of every install. That's correct under default config but offers no guard against a misconfiguredvirtualFolder. v1.2 listsvirtualFolderand removes only entries matching the slug pattern (-virtual-<hex>$). Standard.yarnsiblings (cache,plugins,sdks,install-state.gz, …) don't match, so even if the config ever resolves to.yarnitself, 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
Docs
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'sxfs, 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 producingEEXISTerrors in real monorepos. v1.1 usesnode:fsdirectly. (yarn installnow 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
Docs
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
Docs
Changes
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
Docs
Installation
yarn plugin install https://github.com/dobesv/berry/releases/download/plugin-prevent-multiple-instances-v1/plugin-prevent-multiple-instances.js
v1.2
Docs
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
Docs
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
Docs
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