Verify latest release
pnpm version
10.21.1
Which area(s) of pnpm are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/stefanprobst/issue-pnpm-catalog-strict
Reproduction steps
- clone the reproduction repo
pnpm install
- see that the
catalog in pnpm-workspace.yaml lists react: ^19.2.0
cd packages/repro
pnpm add react
- see that now the
catalog in pnpm-workspace.yaml lists react: 'catalog:' not react: ^19.2.0
Describe the Bug
pnpm add with catalogMode: strict adds "catalog:" instead of a version range to the catalog in pnpm-workspace.yaml
Expected Behavior
pnpm add with catalogMode: strict should always write actual version ranges to catalog, not catalog: which is circular
Which Node.js version are you using?
24.11.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
ubuntu
Verify latest release
pnpm version
10.21.1
Which area(s) of pnpm are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/stefanprobst/issue-pnpm-catalog-strict
Reproduction steps
pnpm installcataloginpnpm-workspace.yamllistsreact: ^19.2.0cd packages/repropnpm add reactcataloginpnpm-workspace.yamllistsreact: 'catalog:'notreact: ^19.2.0Describe the Bug
pnpm addwithcatalogMode: strictadds "catalog:" instead of a version range to thecataloginpnpm-workspace.yamlExpected Behavior
pnpm addwithcatalogMode: strictshould always write actual version ranges tocatalog, notcatalog:which is circularWhich Node.js version are you using?
24.11.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
ubuntu