asdf-vm / asdf-nodejs

Node.js plugin for asdf version manager

Home Page:https://github.com/asdf-vm/asdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to use the `engine` value inside of package.json

aleccool213 opened this issue · comments

I see there is a legacy option for nvm files, what about engines["node"] inside of NPM projects package.json file? A lot of projects just have this set and nothing else. It is fully supported by NPM. If this is a good idea, I wouldn't mind making a PR to support it.

that field is for specifying compatible versions, it really shouldn't be used for this purpose IMO

Agree with @jdxcode, aside from a differente semantic, engines allow much more than single versions, allowing full-fledge expressions (E.g.: 18 || 16 || 15.x), which are not planned at the moment.

Good to know! Thanks for the quick feedback.