Commit 4446c3c
authored
feat(js_runtime): add multi-source Node version reading (#522)
Read Node.js version from multiple sources with priority:
1. .node-version file (highest)
2. engines.node in package.json
3. devEngines.runtime in package.json (lowest)
Key behaviors:
- Only write to .node-version when no version source exists
- Always fetch latest LTS from network when no version specified
- Warn when resolved version conflicts with lower-priority constraints
- node-semver handles partial versions natively (20, 20.18, etc.)1 parent aa6dddb commit 4446c3c
8 files changed
Lines changed: 1055 additions & 721 deletions
File tree
- crates/vite_js_runtime
- src
- providers
- rfcs
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments