Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pnpm for optimized dependency management and monorepo support #5679

Closed
Tracked by #5666
sam-b-rose opened this issue May 2, 2022 · 3 comments
Closed
Tracked by #5666
Assignees

Comments

@sam-b-rose
Copy link
Member

sam-b-rose commented May 2, 2022

pnpm is an alternative package manager for Node.js. It is a drop-in replacement for npm, but faster and more efficient (3 times faster – see benchmarks.

πŸ“Ί Yarn vs pnpm comparison

pnpm has all the additional features that Yarn has over npm:

  1. security. Like Yarn, pnpm has a special file with all the installed packages’ checksums to verify the integrity of every installed package before its code is executed.
  2. offline mode. pnpm saves all the downloaded package tarballs in a local registry mirror. It never makes requests when a package is available locally. With the --offline parameter, HTTP requests can be prohibited at all.
  3. speed. pnpm is faster than npm and Yarn (both with cold and hot cache). Yarn copies files from cache whereas pnpm just links them from the global store.
@aaronccasanova
Copy link
Member

Let's track RFC 0042-isolated-mode.md. Looks like npm might have a pnpm like installation mode on their roadmap.

@BPScott
Copy link
Member

BPScott commented May 3, 2022

It'd also be interesting to see how yarn v3 holds up. Admin-web-platform would be interested in any comparison of modern package managers, as any thing learned could also be applied to our package monorepos (web-configs / quilt / sewing-kit)

@sam-b-rose sam-b-rose changed the title Investigate using pnpm for faster, optimized dependency management and monorepo support Use pnpm for faster, optimized dependency management and monorepo support May 10, 2022
@sam-b-rose sam-b-rose changed the title Use pnpm for faster, optimized dependency management and monorepo support Use pnpm for optimized dependency management and monorepo support May 10, 2022
@alex-page alex-page removed the group 3 label Aug 19, 2022
@github-actions
Copy link
Contributor

This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action.
β†’ If there's no activity within 30 days the issue will be automatically closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants