pnpm workspace: Preventing catalog: from Leaking into pnpm-workspace.yaml
Written by Alessio on 1/27/2026
Problem
During workspace resolution, catalog: entries would incorrectly appear in generated pnpm-workspace.yaml files, causing parsing errors and unexpected behavior.
Solution
Filtered out catalog: keys when processing pnpm-workspace.yaml. The catalog field is valid in package.json but not in the workspace configuration file.
Result
pnpm-workspace.yaml remains clean with only valid workspace configuration, preventing downstream parsing issues.
Commit: pnpm/pnpm@94571fb
PR: #10476