-
Notifications
You must be signed in to change notification settings - Fork 1
/
WORKSPACE
30 lines (25 loc) · 797 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
27
28
29
30
workspace(
name = "graphql_codegen_repo",
managed_directories = {
"@npm": ["node_modules"],
},
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "d63ecec7192394f5cc4ad95a115f8a6c9de55c60d56c1f08da79c306355e4654",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.6.1/rules_nodejs-4.6.1.tar.gz"],
)
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "npm_install")
node_repositories(package_json = ["//:package.json"])
npm_install(
name = "npm",
args = [
"--frozen-lockfile",
],
data = [
],
exports_directories_only = True,
package_json = "//:package.json",
package_lock_json = "//:package-lock.json",
)