File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
"extensions for bzlmod"
2
2
3
+ load ("//nodejs/private:node_versions.bzl" , "NODE_VERSIONS" )
3
4
load (
4
5
":repositories.bzl" ,
5
6
"DEFAULT_NODE_REPOSITORY" ,
@@ -47,6 +48,7 @@ def _toolchain_extension(module_ctx):
47
48
nodejs_register_toolchains (
48
49
name = k ,
49
50
node_version = v .node_version ,
51
+ node_repositories = v .node_versions ,
50
52
node_version_from_nvmrc = v .node_version_from_nvmrc ,
51
53
node_urls = v .node_urls ,
52
54
include_headers = v .include_headers ,
@@ -62,6 +64,10 @@ _ATTRS = {
62
64
doc = "Version of the Node.js interpreter" ,
63
65
default = DEFAULT_NODE_VERSION ,
64
66
),
67
+ "node_versions" : attr .string_list_dict (
68
+ doc = "Overrides to the default list of Node.js versions to download." ,
69
+ default = NODE_VERSIONS ,
70
+ ),
65
71
"node_version_from_nvmrc" : attr .label (
66
72
allow_single_file = True ,
67
73
doc = """The .nvmrc file containing the version of Node.js to use.
You can’t perform that action at this time.
0 commit comments