Skip to main content
Every external version lives in a catalog in pnpm-workspace.yaml. A member’s package.json names the catalog, never a version:
package.json

Enforcement

  • catalogMode: strict: pnpm add refuses a version that isn’t already in a catalog.
  • pnpm validate fails on any specifier other than catalog: or workspace: (peer ranges are exempt).
  • allowBuilds lists every dependency allowed to run an install script; a new one fails the install until it’s reviewed.

Adding a dependency

1

Add it to a catalog

Add the package and version under the right catalog in pnpm-workspace.yaml.
2

Reference it

pnpm add <pkg>@catalog:<name> --filter <package-name>