yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.4k stars 2.73k forks source link

Yarn workspaces mistakenly move workspaces that no other package depends on to node modules #8938

Open hamdiwanis opened 1 year ago

hamdiwanis commented 1 year ago

when I followed the official yarn docs to create a workspace, it says exactly this

Note: don’t look for /node_modules/workspace-b. It won’t be there unless some other package uses it as a dependency.

but it does so am I doing something wrong?

prajwalad101 commented 1 year ago

I am facing the same issue.