Replies: 3 comments
-
You're not supposed to, |
Beta Was this translation helpful? Give feedback.
-
Thanks! Unfortunately this did not work for me. After updating my mono-repository with git and running yarn I was facing problems related to left-overs of node_modules:
|
Beta Was this translation helpful? Give feedback.
-
Found this answer: |
Beta Was this translation helpful? Give feedback.
-
For a clean build with nodeLinker "node-modules" I want to remove existing node_modules in all workspaces. Apparently, this does not happen when running
yarn
from the root workspace.I could use something like
yarn workspaces foreach exec ...
,however, this is dependent on successful
yarn install
in the workspaces' root (sensible yarn.lock needed). But I cannot/dont want to rely on that.Another possibility would be to use "lerna clean -y", but I don't want to include lerna just for this.
What is the "recommended" way to that (other than writing platform dependent shell scripts myself)?
Beta Was this translation helpful? Give feedback.
All reactions