Skip to content
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

chore: add .nvmrc file for Node.js version 22.9.0 #542

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JeevanMahesha
Copy link

PR Checklist

Please check if your PR fulfills the following requirements:


PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Which package are you modifying?

  • None (This PR doesn't modify a specific package, it updates the overall project setup.)

What is the current behavior?

Currently, there is no .nvmrc file in the repository, which can lead to inconsistencies in the Node.js version used by contributors.

Closes: N/A


What is the new behavior?

The .nvmrc file has been added to specify the recommended Node.js version, ensuring that all contributors use the same version during development.


Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This is an initial step to improve developer experience by introducing Node.js version management through .nvmrc.

@@ -0,0 +1 @@
22.9.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! I just noticed that we don't mention anything like this in the contributing guide, etc., but should have been added. Maybe with a different PR?

A couple of points:

  1. Please include a .node-version file with the same contents. Thanks to fragmentation between node version managers, every tool except nvm looks for a .node-version file. While nvm is stable on macOS/Linux, it often enters a problematic state in Windows, so many people have switched to other alternatives.
  2. I can't recall where I remember this from, but .nvmrc (and .node-version) should only include the major version to allow for easy upgrades through minor versions.
Suggested change
22.9.0
22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants