blob: 32ce136a7a4b193b404e5be82f300c4beadaf3d6 [file] [log] [blame]
bazel_dep(name = "rules_nodejs", version = "0.0.0", dev_dependency = True)
local_path_override(
module_name = "rules_nodejs",
path = "../..",
)
bazel_dep(name = "aspect_bazel_lib", version = "2.7.7", dev_dependency = True)
bazel_dep(name = "bazel_skylib", version = "1.7.1", dev_dependency = True)
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node", dev_dependency = True)
# Note, this gets the default version of Node.js from
# https://github.com/bazel-contrib/rules_nodejs/blob/5.8.0/nodejs/repositories.bzl#L11
node.toolchain()
node.toolchain(
name = "node16",
node_version = "16.20.2",
)
node.toolchain(
name = "node16_nvmrc",
node_version_from_nvmrc = "//:.nvmrc",
)
# FIXME(6.0): a repo rule with name=foo should create a repo named @foo, not @foo_toolchains
use_repo(
node,
"node16",
"node16_darwin_amd64",
"node16_darwin_arm64",
"node16_linux_amd64",
"node16_linux_arm64",
"node16_nvmrc",
"node16_nvmrc_darwin_amd64",
"node16_nvmrc_darwin_arm64",
"node16_nvmrc_linux_amd64",
"node16_nvmrc_linux_arm64",
"node16_nvmrc_toolchains",
"node16_nvmrc_windows_amd64",
"node16_toolchains",
"node16_windows_amd64",
"nodejs",
"nodejs_darwin_amd64",
"nodejs_darwin_arm64",
"nodejs_linux_amd64",
"nodejs_linux_arm64",
"nodejs_toolchains",
"nodejs_windows_amd64",
)