Describe the bug
A project with only a lockfile has no exact package-manager set.
But vp migrate adds an exact devEngines.packageManager declaration.
This can break existing CI before Vite+ runs.
For example, actions/setup-node followed by npm ci may use the npm version bundled with Node, which can differ from the version pinned by the migration.
Ideas for a solution:
- Keep existing
packageManager or devEngines.packageManager declarations.
- Leave projects without either declaration unpinned (but warn!)
- Use the package manager resolved from the lockfile only for migration capability checks.
- Keep explicit version pinning as a separate action (
vp env pin)
Reproduction
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
Validations
Describe the bug
A project with only a lockfile has no exact package-manager set.
But
vp migrateadds an exactdevEngines.packageManagerdeclaration.This can break existing CI before Vite+ runs.
For example,
actions/setup-nodefollowed bynpm cimay use the npm version bundled with Node, which can differ from the version pinned by the migration.Ideas for a solution:
packageManagerordevEngines.packageManagerdeclarations.vp env pin)Reproduction
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
Validations