-
Notifications
You must be signed in to change notification settings - Fork 327
Description
What I mean by this is that, for example, if I volta pin node@lts, I would expect it to reference the current LTS release channel instead of one particular version, which at the moment would be lts/fermium (14.15.4). Same thing with inprecise version numbers, such as volta pin yarn@1 or volta pin yarn@latest. In the package.json, we would then have something like:
"volta": {
"node": "lts",
"yarn": "latest"
}This gives us the advantage of always being on the latest version in the user-specified range and the ability to automatically make use of bugfixes and such. If we were to, say, volta pin node@12, volta would check before every run if theres a new version available for said range (~12), if so, install and use it, if not, stay on the currently installed version.
This behavior is heavily inspired by nvm.