forked from dataform-co/dataform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
70 lines (60 loc) · 1.78 KB
/
BUILD
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package(default_visibility = ["//visibility:public"])
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
exports_files([
"tsconfig.json",
"package.json",
"readme.md",
"version.bzl",
])
PROTOBUF_DEPS = [
"@npm//protobufjs",
# these deps are needed even though they are not automatic transitive deps of
# protobufjs since if they are not in the runfiles then protobufjs attempts to
# run `npm install` at runtime to get thhem which fails as it tries to access
# the npm cache outside of the sandbox
"@npm//semver",
"@npm//chalk",
"@npm//glob",
"@npm//jsdoc",
"@npm//minimist",
"@npm//tmp",
"@npm//uglify-js",
"@npm//uglify-es",
"@npm//espree",
"@npm//escodegen",
"@npm//estraverse",
]
nodejs_binary(
name = "pbjs",
data = PROTOBUF_DEPS,
entry_point = "@npm//:node_modules/protobufjs/bin/pbjs",
install_source_map_support = False,
)
nodejs_binary(
name = "pbts",
data = PROTOBUF_DEPS,
entry_point = "@npm//:node_modules/protobufjs/bin/pbts",
install_source_map_support = False,
)
nodejs_binary(
name = "tslint",
data = [
"@npm//tslint",
],
entry_point = "@npm//:node_modules/tslint/bin/tslint",
install_source_map_support = False,
templated_args = ["--node_options=--preserve-symlinks"],
)
load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:prefix github.com/dataform-co/dataform
# gazelle:proto package
# gazelle:proto_group go_package
gazelle(name = "gazelle")
load("//tools:ts_library.bzl", "ts_library")
# TODO: This is only here in order to workaround a bug in the way bazel resolves
# workspace imports when in nested repositories, and can be removed once that is fixed.
ts_library(
name = "modules-fix",
srcs = [],
module_name = "df",
)