forked from angular/tsickle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
executable file
·40 lines (35 loc) · 964 Bytes
/
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
package(default_visibility = ["//visibility:public"])
exports_files(["tsconfig.json"])
# NOTE: this will move to node_modules/BUILD in a later release
filegroup(
name = "node_modules",
srcs = glob(["node_modules/**/*"]),
)
filegroup(
name = "test_files",
srcs = glob([
"test_files/**/*",
"third_party/**/*",
]) + [
# The test suites run version-specific TypeScript compilers,
# but they all need the 'tslib' package to be available. So
# we must provide this extra filegroup as data to those tests.
"@npm//tslib:tslib__files",
],
)
load("@build_bazel_rules_nodejs//:defs.bzl", "npm_package")
npm_package(
name = "npm_package",
srcs = [
"LICENSE",
"README.md",
"package.json",
],
replacements = {
# Allow the resulting package to be published
"\"private\": true": "\"private\": false",
},
deps = [
"//src",
],
)