-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add recommended Node.js version #1012
feat: add recommended Node.js version #1012
Conversation
"license": "Apache-2.0" | ||
"license": "Apache-2.0", | ||
"volta": { | ||
"node": "22.12.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use just 22
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs/contribution.md
Outdated
* Switch to the recommended version of Node.js | ||
* If you are using [Node.js version manager](https://github.com/shadowspawn/node-version-usage) supported `.node_version` using it. | ||
* If you are using Volta, Node.js version will be set automatically from `package.json`. | ||
* In another case manually install recommended version from `.node_version` file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Install manually Node.js >= 22
- Delegate the routine to any version manager, that supports
.node_version
config - Use Volta, the target version will be set automatically from the
package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accepted. Thanks!
Add recommended Node.js version for version manager supports
.node_version
and for Volta add package.json field.I have prepared a draft for support
.node_version
file for voltavolta-cli/volta#1973
Fixes #995