Go to file
Zoltan Kochan 5bede17edb
chore(release): 7.25.1
2023-01-19 12:06:07 +02:00
.changeset chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
.github chore: update code owners 2023-01-09 02:52:01 +02:00
.husky ci: use pnpm v7 (#4307) 2022-02-08 02:33:55 +02:00
.meta-updater fix: update vulnerable dependency 2023-01-11 01:13:58 +02:00
__fixtures__ feat: traverse through workspace packages in `why` and `list` commands (#5863) 2023-01-03 15:28:20 +02:00
__patches__ refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00
__typings__ feat: implement the config commands (#5829) 2022-12-24 17:08:43 +02:00
__utils__ chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
cli chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
config chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
env chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
exec chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
fetching chore(release): 7.24.3 2023-01-11 03:11:36 +02:00
fs chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
hooks chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
lockfile chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
network style: fix 2023-01-11 02:19:41 +02:00
packages chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
patching chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
pkg-manager chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
pkg-manifest fix(deps): update dependencies 2023-01-11 01:10:11 +02:00
pnpm chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
releasing chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
resolving chore(release): 7.24.3 2023-01-11 03:11:36 +02:00
reviewing chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
store chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
text/comments-parser chore(release): 7.17.1 2022-11-27 03:43:44 +02:00
workspace chore(release): 7.25.1 2023-01-19 12:06:07 +02:00
.editorconfig chore: add .editorconfig 2017-03-20 21:53:18 +02:00
.eslintignore refactor: group projects in different subdirectories (#5659) 2022-11-20 01:35:22 +02:00
.eslintrc.json chore(eslint): set root (#4515) 2022-04-01 15:55:45 +03:00
.gitattributes test: cache sinopia storage 2016-12-18 20:06:38 +02:00
.gitignore ci: update verdaccio cache 2022-06-01 02:48:58 +03:00
.npmrc chore: update lockfile 2023-01-10 14:43:41 +02:00
CODE_OF_CONDUCT.md docs(coc): update email 2022-01-11 15:59:46 +02:00
CONTRIBUTING.md refactor: group projects in different subdirectories (#5659) 2022-11-20 01:35:22 +02:00
LICENSE docs(license): update year 2023-01-01 04:26:13 +02:00
README.md docs: add new gold sponsor 2022-11-23 04:37:21 +02:00
SECURITY.md docs(security): deprecate pnpm v5 2022-04-29 17:34:56 +03:00
commitlint.config.cjs chore: rename commitlint.config.js 2021-04-03 15:49:44 +03:00
jest.config.js fix: only build git-hosted dependency if it has no main file (#5868) 2023-01-03 14:38:20 +02:00
jest.setup.js test: retry tests on failure 2021-03-14 14:24:34 +02:00
lint-commits.sh chore: fix typo (#4516) 2022-04-01 15:52:37 +03:00
package.json fix: update vulnerable dependency 2023-01-11 01:13:58 +02:00
pnpm-lock.yaml feat(plugin-commands-audit): show path info in audit output (#5917) 2023-01-18 02:04:17 +00:00
pnpm-workspace.yaml feat(plugin-commands-patching): apply existed patch file when re-patch (#5906) 2023-01-12 04:19:22 +02:00
renovate.json refactor: all packages should be in the `@pnpm` scope (#5785) 2022-12-13 03:46:56 +02:00
tsconfig.lint.json style: use eslint instead of tslint 2020-08-24 02:01:25 +03:00
verdaccio.yaml ci: update verdaccio cache 2022-06-01 02:48:58 +03:00

README.md

Stand With Ukraine

简体中文 | 日本語 | 한국어 | Italiano | Português Brasileiro

Fast, disk space efficient package manager:

  • Fast. Up to 2x faster than the alternatives (see benchmark).
  • Efficient. Files inside node_modules are linked from a single content-addressable storage.
  • Great for monorepos.
  • Strict. A package can access only dependencies that are specified in its package.json.
  • Deterministic. Has a lockfile called pnpm-lock.yaml.
  • Works as a Node.js version manager. See pnpm env use.
  • Works everywhere. Supports Windows, Linux, and macOS.
  • Battle-tested. Used in production by teams of all sizes since 2016.
  • See the full feature comparison with npm and Yarn.

To quote the Rush team:

Microsoft uses pnpm in Rush repos with hundreds of projects and hundreds of PRs per day, and weve found it to be very fast and reliable.

npm version Join the chat at Discord OpenCollective OpenCollective Twitter Follow

Gold Sponsors

Silver Sponsors

Support this project by becoming a sponsor.

Background

pnpm uses a content-addressable filesystem to store all files from all module directories on a disk. When using npm, if you have 100 projects using lodash, you will have 100 copies of lodash on disk. With pnpm, lodash will be stored in a content-addressable storage, so:

  1. If you depend on different versions of lodash, only the files that differ are added to the store. If lodash has 100 files, and a new version has a change only in one of those files, pnpm update will only add 1 new file to the storage.
  2. All the files are saved in a single place on the disk. When packages are installed, their files are linked from that single place consuming no additional disk space. Linking is performed using either hard-links or reflinks (copy-on-write).

As a result, you save gigabytes of space on your disk and you have a lot faster installations! If you'd like more details about the unique node_modules structure that pnpm creates and why it works fine with the Node.js ecosystem, read this small article: Flat node_modules is not the only way.

💖 Like this project? Let people know with a tweet

Getting Started

Benchmark

pnpm is up to 2x faster than npm and Yarn classic. See all benchmarks here.

Benchmarks on an app with lots of dependencies:

Backers

Thank you to all our backers! Become a backer

Contributors

This project exists thanks to all the people who contribute. Contribute.

License

MIT