Skip to content

Commit d36300a

Browse files
committed
Add .nvmrc config file
1 parent 685ae89 commit d36300a

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

client/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24.18.0

misc/version_updater.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def _only_major_version(version: str) -> str:
6363
)
6464
UV_VERSION_MARKER = ReplaceRegex(r"[0-9.]+ # marker:uv-version", "{version} # marker:uv-version")
6565
NODE_GA_VERSION = ReplaceRegex(r"node-version: [0-9.]+", "node-version: {version}")
66+
NODE_NVMRC_VERSION = ReplaceRegex(r"^[0-9.]+", "{version}")
6667
WASM_PACK_GA_VERSION = ReplaceRegex(r"wasm-pack-version: [0-9.]+", "wasm-pack-version: {version}")
6768
PYTHON_DOCKER_VERSION = ReplaceRegex(r"python:\d.\d+", hide_patch_version("python:{version}"))
6869
PYTHON_SMALL_VERSION = ReplaceRegex(r"python\d.\d+", hide_patch_version("python{version}"))
@@ -317,6 +318,9 @@ def set_tool_version(tool: Tool, version: str) -> None:
317318
ROOT_DIR / "cli/tests/integration/version.rs": {
318319
Tool.Parsec: [ReplaceRegex(r'"parsec-cli .*", ', '"parsec-cli {version}", ')]
319320
},
321+
ROOT_DIR / "client/.nvmrc": {
322+
Tool.Node: [NODE_NVMRC_VERSION],
323+
},
320324
ROOT_DIR / "client/electron/assets/installer.nsh": {
321325
Tool.WinFSP: [ReplaceRegex(r'WINFSP_VERSION ".*"', 'WINFSP_VERSION "{version}"')],
322326
},

0 commit comments

Comments
 (0)