nodejs / corepack

Zero-runtime-dependency package acting as bridge between Node projects and their package managers
MIT License
2.36k stars 150 forks source link

feat: bump Known Good Release when downloading new version #364

Closed aduh95 closed 5 months ago

aduh95 commented 5 months ago

When Corepack downloads a new version, it checks if it corresponds to same major as the global cached one, and if it does, it uses the more recent one the next time the global version is used. That should give users a more smoother experience as they won't need to call corepack install -g as often – with this PR, it should be needed only when wanting to use a different major, assuming you work on projects that keep their "packageManager" field up-to-date.