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

[Misc] Pin Node.js version when using mise-en-place #681

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

Conversation

ClementEXWiki
Copy link
Contributor

Jira URL

N/A

Changes

Description

Clarifications

  • Mise is a tool suite enabling notably the management of multiple Node.js versions. This PR allows it to automatically select and download the correct Node.js version for the project.

Screenshots & Video

N/A

Executed Tests

N/A

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • N/A

cc @manuelleduc

@@ -0,0 +1,2 @@
[tools]
node = "22.13.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not a fan of seeing the node version duplicated between this file and the root package.json
Would it be possible to point this config file to the package.json definition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, apparently this is no-fix for mise: jdx/mise#2284
Nvm does the same actually: nvm-sh/nvm#651

The field in package.json indicates the compatibility, not the final Node.js version to use. It's only an indicator of which version is compatible. So I think it makes sense to have the actual version in a separate file, though I can also understand if having a "duplicate" is a problem.

@manuelleduc manuelleduc self-assigned this Feb 20, 2025
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