Quramy / lerna-yarn-workspaces-example

How to build TypeScript mono-repo project with yarn and lerna
MIT License
898 stars 94 forks source link

How to avoid yarn workspace full reinstall per build? #6

Closed morgs32 closed 4 years ago

morgs32 commented 6 years ago

I see that every time a build goes to circleci it has to rebuild the whole workspace. Takes about a 1.5 minutes for me.

That is despite saving the node_modules to cache. And not just the root node_modules. But globbing all the package node_modules too.

circleci
TheAifam5 commented 5 years ago

You are missing dependencies... that's why.. Just add unmet peer depenency which are misisng and problem will be solved.

morgs32 commented 4 years ago

That's not the problem at all. But closing anyway.

WebMex commented 3 years ago

That's not the problem at all. But closing anyway.

I have the same problem. Have you found the solution?

morgs32 commented 3 years ago

No I live with it.

WebMex commented 3 years ago

Maybe it will be useful for somebody. I fixed it. I just included node_modules folders for each workspace to the cache.