Reproduction link or steps
- Clone https://github.com/vitejs/vite
- Run
pnpm i
- Notice that the lockfile updates itself due to
tsdown's dependency on rolldown
What is expected?
The lockfile does not update itself
What is actually happening?
The lockfile is updated because tsdown depends on rolldown via latest instead of a semver ^1.0.0-beta.X, causing the installation to always pull in the latest rolldown and updates the lockfile when there's a new version of rolldown.
I don't know if this is possibly a bug in pnpm where it should always reuse the locked version, but it might be better to use a strict range in the library instead.
Any additional comments?
This seem to happen since 8ae720a. On npm, you can also see that package.json dependencies has "rolldown": "latest"
Reproduction link or steps
pnpm itsdown's dependency onrolldownWhat is expected?
The lockfile does not update itself
What is actually happening?
The lockfile is updated because
tsdowndepends onrolldownvialatestinstead of a semver^1.0.0-beta.X, causing the installation to always pull in the latest rolldown and updates the lockfile when there's a new version ofrolldown.I don't know if this is possibly a bug in pnpm where it should always reuse the locked version, but it might be better to use a strict range in the library instead.
Any additional comments?
This seem to happen since 8ae720a. On npm, you can also see that
package.jsondependencies has"rolldown": "latest"