Post

For monorepos, use pnpm.

1 repost8 likes

and then, when you need something faster, like caching etc, add @nx.dev on top of it. > pnpm dlx nx init No other changes required 😎

It is just superior - faster (due to package cache and smart symlinking) - pnpm catalogs to avoid version conflicts - "workspace:*" protocol is just more explicit & clear - security features like postinstall prevention/delay etc. 👆 things that immediately come to my mind. Just less surprises

It's more about control. In particular in a monorepo you might want to sync certain versions while keeping others dependent per project. It's basically a really nice way to do some sort of hybrid single-version policy in a monorepo setup