DEV Community

Discussion on: What is the difference between yarn and npm these days?

Collapse
 
pavel910 profile image
Pavel Denisjuk

For us at Webiny, NPM is a no-go because it doesn't support workspaces.

You could say "use Lerna". Yes, we do use Lerna, but its hoisting capabilities and speed is far behind Yarn. We have 70+ packages in our monorepo, and Lerna just can't handle that with all the hoisting going on. And the results of hoisting between Yarn and Lerna are completely different.

For those who care to go into a deep analysis, there is a great article which compares npm, yarn, lerna and all the combinations of those, with benchmarks, etc.: doppelmutzi.github.io/monorepo-ler...