Replies: 2 comments
-
Just adding the link to the docs from Lerna for later since they're pretty helpful. I've heard great things about pnpm, though I haven't used it yet. This was very encouraging: https://dev.to/hotjar/monorepos-with-pnpm-part-1-a-performant-package-manager-5g41 The bug you demonstrated with the dependencies getting hoisted up is worrisome -- you could be developing with your package having access to a dependency that isn't actually in its |
Beta Was this translation helpful? Give feedback.
-
Some issues I came across setting up a new PC: |
Beta Was this translation helpful? Give feedback.
-
I'm opening a discussion because we must first do some research, discuss available options and then proceed to implementation.
We are on currently Lerna v6.
In order to upgrade to v7, we will have to use a new dependency manager for the monorepo:
Personally, I have tried npm workspaces and quickly moved away from them, as they are not as flexible and can lead to a dead end. I even came up with a demo project recently to demonstrate the issue.
At this moment, I am experimenting with pnpm and it seems pretty powerful.
Finally, the latest versions of node.js come with a beta feature corepack allowing better integration with different package managers.
If you have any thoughts or feedback to share on the topic, please share them here.
Beta Was this translation helpful? Give feedback.
All reactions