Skip to content

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

Choose a tag to compare

@dobesv dobesv released this 20 May 20:30
· 3 commits to plugin-materialize-virtual-workspaces since this release

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