forked from rolldown/rolldown
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: run just setup limited node version (rolldown#3305)
### Description When I was building the project from scratch need NODE version >= 20.14.0; but docs show me is 20.11.0 <img width="760" alt="image" src="https://github.com/user-attachments/assets/4191e9c0-0a3d-4f80-bde2-cef304a5454a" /> When I read the source code, I found running `just setup` also running `node ./scripts/misc/setup-prerequisites/node.js` and min nodeVersion is used `.node-version`(20.14.0)
- Loading branch information
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { readFileSync } from 'node:fs' | ||
import path from 'node:path' | ||
|
||
const nodeVersion = readFileSync( | ||
path.join(__dirname, '../../.node-version'), | ||
'utf8', | ||
).trim() | ||
|
||
export default { | ||
load() { | ||
return { | ||
nodeVersion, | ||
} | ||
}, | ||
} |