No description
  • Rust 97.4%
  • JavaScript 1.5%
  • TypeScript 0.6%
  • C++ 0.3%
  • Shell 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Zoltan Kochan dcb26c99fa
fix(cli): offer repository-wide git dependency approvals (#18378)
`pnpm approve` accepts a package name and Git repository URL as an
explicit selector for future updates. It uses the same repository
identity as the install policy to find pending commits, records the
requested capabilities under the repository selector, and uses the
resolved keys to rebuild packages and clear pending entries.

The picker shows one row per Git package and repository. Leave it
unchecked to deny the pending commits, press Space to approve only those
commits, or press R to include future commits. Enter submits the choice
once. `--all` stays commit-scoped. An exact positional selector can
still approve a single revision.

Verified all three choices in a terminal using two pending commits and a
second repository. Checked the resulting policy keys after each choice.
The focused permission, checkbox, and agent-skills suites passed all 66
tests.

Closes pnpm/pnpm#18375.
2026-11-23 13:21:03 +01:00
.agents/skills chore: rename the pacquet workspace package to pnpm (#18363) 2026-11-22 21:48:34 +01:00
.cargo fix(release): build ppc64le C dependencies at -O2 so LLD can link them (#18354) 2026-11-22 13:02:17 +01:00
.changeset fix(cli): offer repository-wide git dependency approvals (#18378) 2026-11-23 13:21:03 +01:00
.claude chore: load .agents/skills in Claude Code via a .claude/skills symlink (#14995) 2026-09-17 01:42:31 +02:00
.config chore: rename the pacquet workspace package to pnpm (#18363) 2026-11-22 21:48:34 +01:00
.devcontainer chore: move pnpm v11 off main to the release/11 branch (#18358) 2026-11-22 19:13:38 +01:00
.github fix: strip the symbol table from release binaries again (#18369) 2026-11-23 00:43:51 +01:00
.meta-updater chore: move pnpm v11 off main to the release/11 branch (#18358) 2026-11-22 19:13:38 +01:00
docker fix(docker): link the pn, pnpx, and pnx aliases in the image (#17282) 2026-10-24 00:32:19 +02:00
fixtures fix: unify pinned-pnpm switch and record decision across entry points (#17427) 2026-10-27 12:28:54 +01:00
pnpm fix(cli): offer repository-wide git dependency approvals (#18378) 2026-11-23 13:21:03 +01:00
pnpr fix(pnpr): close pooled libSQL connections before Turso drops them (#18373) 2026-11-23 11:40:00 +01:00
vendor fix(pipeline): correct cache identity and task execution (#18337) 2026-11-22 02:28:29 +01:00
.coderabbit.yaml chore: move pnpm v11 off main to the release/11 branch (#18358) 2026-11-22 19:13:38 +01:00
.editorconfig feat(hooks): add beforePacking hook (#10303) 2025-12-21 15:49:47 +01:00
.gitattributes feat: accept zstd-compressed responses and serve them from pnpr (#16585) 2026-10-15 21:35:31 +02:00
.gitignore chore: move pnpm v11 off main to the release/11 branch (#18358) 2026-11-22 19:13:38 +01:00
.pr_agent.toml refactor(pnpr)!: apply PHILOSOPHY.md and consolidate pre-1.0 shims (#17360) 2026-10-26 09:28:07 +01:00
.taplo.toml style: stop aligning TOML entries and comments (#14818) 2026-09-10 22:33:02 +02:00
.typos.toml fix(pnp): restore package resolution and loader discovery (#18329) 2026-11-22 01:18:59 +01:00
.vale.ini chore: move pnpm v11 off main to the release/11 branch (#18358) 2026-11-22 19:13:38 +01:00
AGENTS.md chore: rename the pacquet workspace package to pnpm (#18363) 2026-11-22 21:48:34 +01:00
Cargo.lock chore(release): 11.29.0, pacquet 12.23.0, pnpr 0.1.0-alpha.22, get-pnpm 0.1.0 (#18349) 2026-11-22 12:00:03 +01:00
Cargo.toml fix: strip the symbol table from release binaries again (#18369) 2026-11-23 00:43:51 +01:00
CODE_OF_CONDUCT.md docs: lint prose with Vale (#17238) 2026-10-22 21:48:09 +02:00
CONTRIBUTING.md chore: move pnpm v11 off main to the release/11 branch (#18358) 2026-11-22 19:13:38 +01:00
Cross.toml feat: add linux-loong64 build (#14683) 2026-11-19 02:16:11 +01:00
DOCUMENTATION.md ci: preview only the documentation lines main holds (#18367) 2026-11-23 00:42:32 +01:00
dylint.toml refactor(rust): enable perfectionist::needless_borrowed_parameters (#12784) 2026-11-21 03:35:18 +01:00
eslint.config.mjs chore: move pnpm v11 off main to the release/11 branch (#18358) 2026-11-22 19:13:38 +01:00
FUNDING.json docs: create FUNDING.json 2024-03-21 01:09:22 +01:00
justfile chore: make just known-failures work with an empty list and the CLI suite (#13355) 2026-11-19 23:21:24 +01:00
LICENSE docs: update copyright year in LICENSE file 2026-01-02 12:23:58 +01:00
package.json chore: move pnpm v11 off main to the release/11 branch (#18358) 2026-11-22 19:13:38 +01:00
PHILOSOPHY.md chore: remove the RPM packaging and document the distribution policy (#18297) 2026-11-21 12:17:31 +01:00
pnpm-lock.yaml chore: rename the pacquet workspace package to pnpm (#18363) 2026-11-22 21:48:34 +01:00
pnpm-workspace.yaml chore: rename the pacquet workspace package to pnpm (#18363) 2026-11-22 21:48:34 +01:00
README.md docs: use dark-mode sponsor logo variants for Notion, Latitude, and devowl.io (#17931) 2026-11-10 16:55:46 +01:00
RELEASING.md chore: rename the pacquet workspace package to pnpm (#18363) 2026-11-22 21:48:34 +01:00
renovate.json test: replace @pnpm/registry-mock with an in-repo in-process registry (#11927) 2026-05-29 14:35:45 +02:00
rust-toolchain.toml chore(toolchain): update to 1.100.0 (#18038) 2026-11-13 14:15:02 +01:00
rustfmt.toml style(rust): use vertical grouped imports and the current perfectionist rules (#15263) 2026-11-20 16:51:09 +01:00
SECURITY.md docs(security): stop excluding pnpm v12 from the advisory process (#18281) 2026-11-20 14:43:55 +01:00
tsconfig.lint.json chore: move pnpm v11 off main to the release/11 branch (#18358) 2026-11-22 19:13:38 +01:00
UNSAFE_POLICY.md refactor: organize unsafe code (#17216) 2026-11-21 00:29:34 +01:00

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

pnpm

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 runtime.
  • Works everywhere. Supports Windows, Linux, and macOS.
  • Battle-tested. Used in production by teams of all sizes since 2016.
  • Experimental Rust port. Includes pacquet, an experimental port of the CLI written in Rust.
  • 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 we've found it to be very fast and reliable.

npm version Ecosystem E2E OpenCollective OpenCollective X Follow Stand With Ukraine

Platinum Sponsors

Bit OpenAI Notion
CodeRabbit Cloudflare

Gold Sponsors

Sanity Discord Vite
SerpApi Stackblitz Workleap
Nx Latitude Syntax

Silver Sponsors

Replit Cybozu BairesDev
Thesys devowl.io u|screen
Leniolabs_ Depot Cerbos
⏱️ Time.now

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.

Benchmarks on an app with lots of dependencies:

License

MIT, except the pnpr/ directory, which is source-available under the PolyForm Shield License 1.0.0.