21 lines
473 B
Text
21 lines
473 B
Text
|
load("@build_bazel_rules_nodejs//nodejs:toolchain.bzl", _node_toolchain = "node_toolchain")
|
||
|
|
||
|
package(default_visibility = ["//visibility:public"])
|
||
|
|
||
|
exports_files([
|
||
|
"bin/node",
|
||
|
"bin/npm",
|
||
|
])
|
||
|
|
||
|
_node_toolchain(
|
||
|
name = "node_toolchain",
|
||
|
target_tool_path = "__NODEJS__/bin/node",
|
||
|
npm_path = "__NODEJS__/bin/npm",
|
||
|
)
|
||
|
|
||
|
toolchain(
|
||
|
name = "nodejs",
|
||
|
toolchain = ":node_toolchain",
|
||
|
toolchain_type = "@build_bazel_rules_nodejs//nodejs:toolchain_type",
|
||
|
)
|