r/typescript • • Feb 04 '24

pnpm vs yarn v4

41 Upvotes

At work, we are looking to migrate from yarn v1.2x to something better as it’s going to be deprecated. We have no prior experience with pnpm but it looks neat.

Our setup:

  • Frontend: typescript + react + vite
  • Backend: typescript + nodejs + nestjs.
  • CI: we build our images with node + yarn to run our jobs like install, build, test coverage etc.

We would also look into nextjs or similar ssr tools possibly with nx for a very complex (multi-team micro frontend) project in the near future.

We also have multiple private package registries (jfrog, gitlab) which we need to support. Another line of thought is about the future direction given bun or deno like tools which comes their own package manager but that’s the least of the concern now.

What are your experience/opinions about the package managers?