pnpm-workspace.yaml. A member’s package.json names the
catalog, never a version:
package.json
Enforcement
catalogMode: strict:pnpm addrefuses a version that isn’t already in a catalog.pnpm validatefails on any specifier other thancatalog:orworkspace:(peer ranges are exempt).allowBuildslists 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>