Description
I love using vite-plus for managing my node version
but it only supports node version from .node-version or package.json fields
there are a lot of projects which uses .nvmrc files for node version, either with nvm or a compatible tool that respects .nvmrc
Vite+ should also respect .nvmrc as a source for node version when the other 2 sources are not there. vp migrate already parses .nvmrc and migrates to the supported config sources, but when I am working on a one of fix/feature on a repo I just want vp to resolve the correct node version as changing unrelated files to node version is not something we should be worrying about.
Suggested solution
Add suport for .nvmrc here
.node-version file (current or parent directories)
devEngines.runtime in package.json (the [devEngines standard](https://docs.npmjs.com/cli/v11/configuring-npm/package-json#devengines))
engines.node in package.json
+ .nvmrc file
The global default (vp env default), then the latest LTS
Alternative
run vp env use everytime in the repo or add a supported config file in a different PR if the maintainer allows it
Additional context
https://discord.com/channels/1475973262193459293/1479410337223802951/1528691105695137916
https://discord.com/channels/1475973262193459293/1479410337223802951/1528706682148884573
Validations
Description
I love using vite-plus for managing my node version
but it only supports node version from
.node-versionorpackage.jsonfieldsthere are a lot of projects which uses
.nvmrcfiles for node version, either with nvm or a compatible tool that respects.nvmrcVite+ should also respect
.nvmrcas a source for node version when the other 2 sources are not there.vp migratealready parses.nvmrcand migrates to the supported config sources, but when I am working on a one of fix/feature on a repo I just wantvpto resolve the correct node version as changing unrelated files to node version is not something we should be worrying about.Suggested solution
Add suport for
.nvmrchere.node-version file (current or parent directories) devEngines.runtime in package.json (the [devEngines standard](https://docs.npmjs.com/cli/v11/configuring-npm/package-json#devengines)) engines.node in package.json + .nvmrc file The global default (vp env default), then the latest LTSAlternative
run
vp env useeverytime in the repo or add a supported config file in a different PR if the maintainer allows itAdditional context
https://discord.com/channels/1475973262193459293/1479410337223802951/1528691105695137916
https://discord.com/channels/1475973262193459293/1479410337223802951/1528706682148884573
Validations