In this video I’ll compare monorepo tools such as Lerna/Yarn workspaces/PNPM workspaces with Nx. The video walks you through the steps of adding Nx to a Lerna repo and showing many affordances Nx offers. Although the video uses Lerna, everything said applies to Yarn or PNPM. Basically, any time I say “Lerna” you can substitute it for Yarn or PNPM.
Lerna, Yarn workspaces, pnpm workspaces offer the following affordances for developing multiple projects in the same repo:
node_modules
. If I use the same version of say Next.js in all the projects, the package is installed once.This is what Nx offers:
#nextjs #react #nx #angular #node