about summary refs log tree commit diff
path: root/nix/buildBazelPackageNG/bazelRulesNodeJS5Hook/local_node/BUILD
blob: d764d23ffd1a1a0715874b05b07596b4aba8d0b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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",
)