mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-13 02:55:56 -04:00
* fix: preserve catalog protocol when updating project manifest
This makes `pnpm add foo@catalog:` preserve the catalog protocol when
updating `package.json`.
This also fixes a quirk with `pnpm update --latest <name>` when <name>
is a catalog'ed dep. The `updateSpec` field is set on all deps if
`wantedDependencies` filters to 0.
341656f9b3/pkg-manager/resolve-dependencies/src/toResolveImporter.ts (L44-L48)
* test: ensure pnpm update does not update catalog dependencies (yet)
* test: `pnpm add is-positive@catalog:`