File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 7
7
"DEFAULT_NODE_VERSION" ,
8
8
"nodejs_register_toolchains" ,
9
9
)
10
+ load ("//nodejs/private:node_versions.bzl" , "NODE_VERSIONS" )
11
+
10
12
11
13
def _toolchain_repr (toolchain ):
12
14
""" Return a `toolchain` tag object representation useful for diagnostics """
@@ -47,6 +49,7 @@ def _toolchain_extension(module_ctx):
47
49
nodejs_register_toolchains (
48
50
name = k ,
49
51
node_version = v .node_version ,
52
+ node_repositories = v .node_versions ,
50
53
node_version_from_nvmrc = v .node_version_from_nvmrc ,
51
54
node_urls = v .node_urls ,
52
55
include_headers = v .include_headers ,
@@ -62,6 +65,10 @@ _ATTRS = {
62
65
doc = "Version of the Node.js interpreter" ,
63
66
default = DEFAULT_NODE_VERSION ,
64
67
),
68
+ "node_versions" : attr .string_list_dict (
69
+ doc = "Overrides to the default list of Node.js versions to download." ,
70
+ default = NODE_VERSIONS ,
71
+ ),
65
72
"node_version_from_nvmrc" : attr .label (
66
73
allow_single_file = True ,
67
74
doc = """The .nvmrc file containing the version of Node.js to use.
You can’t perform that action at this time.
0 commit comments