node_modules in zero-installs monorepo with yarn workspaces. To commit or not to commit? #4437
-
I created a monorepo with yarn workspaces using the most recent stable release, currently 3.2.0, which defaults to a zero-installs configuration. The automatically generated
There's no Steps to reproduce:Enable Corepack if you haven't yet: corepack enable Create the monorepo with yarn up to date and its zero-install workspaces. mkdir temp-yarn-monorepo cd temp-yarn-monorepo yarn set version stable yarn init -w Add a workspace. mkdir -p packages/my-package && echo '{"name": "my-package","version": "1.0.0"}' >> packages/my-package/package.json Install yarn workspace my-package add -D microbundle Now you should be able to see a big, fat, tracked Furthermore once I build |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It looks like the problem was that at some time I run |
Beta Was this translation helpful? Give feedback.
It looks like the problem was that at some time I run
yarn set version stable
(or something similar) from the root of my machine. So it was like my entire laptop was a yarn monorepo, and I also found that it had thenodeLinker
set tonode-modules
, which probably was the cause of thenode_modules
I was getting.