Skip to content

chore: add step to check for minimum node version during setup#2411

Merged
hyf0 merged 2 commits intorolldown:mainfrom
burhanuday:feat/check-node-version-during-setup
Oct 15, 2024
Merged

chore: add step to check for minimum node version during setup#2411
hyf0 merged 2 commits intorolldown:mainfrom
burhanuday:feat/check-node-version-during-setup

Conversation

@burhanuday
Copy link
Copy Markdown
Contributor

Description

Using a NodeJS version less than what is in the .node-version file gives a cryptic error, see screenshot below

Screenshot 2024-10-12 at 10 57 21 AM

This PR adds a check if the user has the minimum required version installed

When minimum version is not installed, the script errors out early

Screenshot 2024-10-12 at 10 56 41 AM

When the installed version is above the minimum, the script works as expected

Screenshot 2024-10-12 at 10 57 50 AM

 

@netlify
Copy link
Copy Markdown

netlify bot commented Oct 12, 2024

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit 334cf41
🔍 Latest deploy log https://app.netlify.com/sites/rolldown-rs/deploys/670a67f3f5598e0008b9cf3d

@@ -0,0 +1,17 @@
const MIN_MAJOR_VERSION = 20
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could we create this data by reading from .node-version?

@burhanuday burhanuday requested a review from hyf0 October 12, 2024 12:13
Copy link
Copy Markdown
Member

@hyf0 hyf0 left a comment

Choose a reason for hiding this comment

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

Thanks

@burhanuday
Copy link
Copy Markdown
Contributor Author

Are there any blockers to merging this? @hyf0

@hyf0 hyf0 added this pull request to the merge queue Oct 15, 2024
@hyf0
Copy link
Copy Markdown
Member

hyf0 commented Oct 15, 2024

Nope. Just forgot to click the auto merge button.

Merged via the queue into rolldown:main with commit 277503d Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants