Alex Rickabaugh 660800ca4e Revert "build: update to rules_nodejs 0.32.2 (#31019)" (#31267)
This reverts commit a38433f36b036cb2956066cb6a5843bef73a4de1.

Reason: this causes failures in g3 with i18n extraction. See #31267.

PR Close #31267
2019-06-25 14:36:00 -07:00

32 lines
573 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",
],
)