build: reference zone.js from source directly instead of npm. (#33046)

Close #32482

PR Close #33046
This commit is contained in:
JiaLiPassion
2019-10-06 12:06:53 +09:00
committed by atscott
parent 3de72e4124
commit 8c6fb17d29
100 changed files with 181 additions and 159 deletions

View File

@ -1,16 +1,28 @@
load("@npm_bazel_typescript//:index.bzl", "ts_library")
package(default_visibility = ["//packages/zone.js:__pkg__"])
package(default_visibility = ["//visibility:public"])
exports_files(glob([
"**/*",
]))
ts_library(
name = "lib",
srcs = glob(["**/*.ts"]),
visibility = ["//packages/zone.js:__subpackages__"],
name = "zone_d_ts",
srcs = [":zone.ts"],
deps = [
"@npm//@types/node",
],
)
ts_library(
name = "lib",
srcs = glob(
["**/*.ts"],
exclude = ["zone.ts"],
),
module_name = "zone.js/lib",
deps = [
":zone_d_ts",
"@npm//@types/jasmine",
"@npm//@types/node",
"@npm//rxjs",