-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
26 lines (20 loc) · 795 Bytes
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
workspace(
name = "repro",
managed_directories = {"@npm": ["node_modules"]},
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "dd7ea7efda7655c218ca707f55c3e1b9c68055a70c31a98f264b3445bc8f4cb1",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.2.3/rules_nodejs-3.2.3.tar.gz"],
)
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
# ERROR: no such package '@nodejs_linux_amd64//': Unknown NodeJS version-host 14.16.0-linux_amd64
node_repositories(node_version = "14.16.0")
# works fine
# node_repositories(node_version = "14.15.5")
yarn_install(
name = "npm",
package_json = "//:package.json",
yarn_lock = "//:yarn.lock",
)