Problem
qm init claims to write the version it resolved to as an exact dependency. However, packageContent preserves any existing string at dependencies["@yc-software/qm"]:
- an older exact version
- a semver range
latest
- a local
file: artifact
For registry specifications, the subsequent npm install can therefore install a different CLI from the one that generated the deployment files. This can leave the generated deployment incompatible with its installed CLI.
Expected behavior
qm init should replace registry dependency specifications with cliVersion(), while preserving intentional local package artifacts used by development and packed-artifact tests.
Acceptance criteria
- Existing exact, ranged, tag, and other registry specifications are replaced with the executing CLI version.
- Supported local dependency forms remain usable.
- Tests cover both registry and local dependency inputs.
- The deployment documentation accurately describes the resulting pin.
Problem
qm initclaims to write the version it resolved to as an exact dependency. However,packageContentpreserves any existing string atdependencies["@yc-software/qm"]:latestfile:artifactFor registry specifications, the subsequent
npm installcan therefore install a different CLI from the one that generated the deployment files. This can leave the generated deployment incompatible with its installed CLI.Expected behavior
qm initshould replace registry dependency specifications withcliVersion(), while preserving intentional local package artifacts used by development and packed-artifact tests.Acceptance criteria