A package manager for JavaScript projects, with TypeScript and Rust implementations and a registry server.
On this page
Overview
pnpm's root guide covers three products and points each one to local instructions. It defines version-specific policy, warns when bundled tests can go stale, and explains release identifiers and platform-dependent skill discovery.
New features belong only in the Rust v12 CLI. Shared bugs require fixes in both stacks, with observable behavior aligned, so an intentional product difference is not mistaken for a defect.
Source excerpt starting at line 17.
17**Implement new features only in pnpm v12. Do not add them to pnpm v11.** A feature that intentionally exists only in v12 is not a parity gap.
02 / Verification by change type
Warn when tests exercise a stale artifact
The TypeScript E2E suite uses the bundled executable rather than individual package outputs. The guide requires rebuilding that bundle after package edits so the test actually covers the change.
Source excerpt starting at line 87.
87This runs `tsgo --build`, linting, and `pnpm run bundle` (which bundles all TypeScript packages into `pnpm11/pnpm/dist/pnpm.mjs`). Without this step, e2e tests will use a stale bundle and your changes won't be tested.
03 / House vocabulary
Disambiguate internal and published package names
Rust releases target pacquet in changeset metadata, while release prose still calls the executable pnpm. The distinction prevents a Rust-only change from assigning a release to the maintained TypeScript CLI.
Source excerpt starting at line 273.
273Use `pacquet` as the changeset package name, but use `pnpm` in its release-note prose and command examples (`pnpm add`, not `pacquet add`). The published Rust CLI's executable is `pnpm`; `pacquet` is only its in-repo package identifier.
04 / Good and bad pairs
Explain why a familiar type check fails in tests
The common-gotchas section shows that Error identity does not cross Jest VM realms reliably. It supplies util.types.isNativeError as the corresponding check and includes a wrong/right example.
Source excerpt starting at line 330.
330When checking if a caught error is an `Error` object, **do not use `instanceof Error`**. Jest runs tests in a VM context where `instanceof` checks can fail across realms.
05 / Pointing at the source of truth
Document the platform prerequisite for shared instructions
Claude's skills and root instructions use symlinks. On Windows, a clone without symlink support produces text files instead, preventing agents from discovering those instructions.
Source excerpt starting at line 393.
393Git only writes a real symlink on Windows when the clone has `core.symlinks=true`, which needs Developer Mode or an elevated shell. Without it `.claude/skills` is checked out as a text file holding the target path, and Claude Code finds no skills. `CLAUDE.md` is a symlink to `AGENTS.md`, so such a clone loses the project instructions the same way.
Ideas for your repo
01Distinguish intentional version differences from shared defects.
02Document the artifact a test runner actually executes.
03Disambiguate internal package IDs from public product names.
04Show framework-specific exceptions to familiar language checks.
05Record platform requirements for symlink-based instruction sharing.
Sponsored by
Give your agents the whole story.
These instructions explain how to work in pnpm. Modem shows your agents what customers said, who is affected, and what changed.