Skip to content
Discussion options

You must be logged in to vote

You may consider pnpm because it is generally a better choice for a monorepo with several shared internal packages. Its dependency system is much stricter than npm’s traditional hoisting model. With npm, dependencies are often hoisted into the root node_modules, which means a package can accidentally use libraries it never declared in its own package.json.

Compatibility with pnpm has improved greatly in recent years, and most modern tooling such as TypeScript, Vite, Webpack 5, Jest, ESLint, Next.js, and Turborepo now works well with pnpm. However, some older tools and plugins still assume a flat node_modules structure and may require small configuration changes, especially certain Jest se…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Suzukijs
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage npm Discussions around programming langages, open source and software development Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates
6 participants