DEV Community

Discussion on: JavaScript Monorepo Implemented by Lerna with Yarn Workspaces and Git Submodules

Collapse
 
liyachun profile image
liyachun • Edited

Recently I am considering Nx and Bit.dev, I am starting to agree with Nx's idea on its relationship with Yarn/Lerna as follows:

Lerna/Yarn/PNPM are package managers. When it comes to monorepos, they mainly perform node_modules deduping. So the choice isn't between Nx or Yarn Workspaces. It's between whether you want to have multiple node_modules folders (in this case use Nx with Yarn Workspaces) or not (use Nx without Yarn Workspaces).