Skip to content

Commit f83a178

Browse files
committed
feat(catalog): add multi_version config to Node.js
- Enable nvm directory scanning (~/.nvm/versions/node) - Handle 'v' prefix in version directories - Track up to 3 LTS versions - Add version_files (.nvmrc, .node-version, package.json)
1 parent b373871 commit f83a178

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

catalog/node.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,17 @@
1212
"display_name": "Node.js stack",
1313
"install_action": "reconcile",
1414
"order": 40
15-
}
15+
},
16+
"multi_version": {
17+
"enabled": true,
18+
"source": "endoflife",
19+
"product": "nodejs",
20+
"max_versions": 3,
21+
"version_manager_dir": "~/.nvm/versions/node",
22+
"version_prefix": "v",
23+
"binary_subpath": "bin",
24+
"binary_name": "node",
25+
"version_files": [".nvmrc", ".node-version", "package.json"]
26+
},
27+
"notes": "Managed via nvm (Node Version Manager). Supports multiple concurrent LTS versions."
1628
}

0 commit comments

Comments
 (0)