361109d80f
Brings in ts_library fixes required to get angular/angular building after 0.32.0: typescript: exclude typescript lib declarations in node_module_library transitive_declarations typescript: remove override of @bazel/tsetse (+1 squashed commit) @npm//node_modules/foobar:foobar.js labels changed to @npm//:node_modules/foobar/foobar.js with fix for bazelbuild/rules_nodejs#802 also updates to rules_rass commit compatible with rules_nodejs 0.32.0 PR Close #31325
34 lines
596 B
Python
34 lines
596 B
Python
load("//tools:defaults.bzl", "ng_rollup_bundle", "ts_library")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_library(
|
|
name = "worker",
|
|
srcs = glob(
|
|
[
|
|
"*.ts",
|
|
"src/**/*.ts",
|
|
],
|
|
exclude = [
|
|
"main.ts",
|
|
],
|
|
),
|
|
tsconfig = ":tsconfig.json",
|
|
deps = ["@npm//@types/node"],
|
|
)
|
|
|
|
ts_library(
|
|
name = "main",
|
|
srcs = ["main.ts"],
|
|
tsconfig = ":tsconfig.json",
|
|
deps = [":worker"],
|
|
)
|
|
|
|
ng_rollup_bundle(
|
|
name = "ngsw_worker",
|
|
entry_point = ":main.ts",
|
|
deps = [
|
|
":main",
|
|
],
|
|
)
|