4
4
# found in the LICENSE file at https://angular.dev/license
5
5
6
6
load ("@npm//@bazel/jasmine:index.bzl" , "jasmine_node_test" )
7
- load ("//tools:defaults.bzl" , "pkg_npm" , "ts_library" )
7
+ load ("//tools:defaults.bzl" , "pkg_npm" )
8
+ load ("//tools:interop.bzl" , "ts_project" )
8
9
load ("//tools:ts_json_schema.bzl" , "ts_json_schema" )
9
10
10
11
licenses (["notice" ])
11
12
12
13
package (default_visibility = ["//visibility:public" ])
13
14
14
- ts_library (
15
+ ts_project (
15
16
name = "pwa" ,
16
- package_name = "@angular/pwa" ,
17
17
srcs = [
18
18
"pwa/index.ts" ,
19
19
"//packages/angular/pwa:pwa/schema.ts" ,
@@ -26,11 +26,14 @@ ts_library(
26
26
"pwa/files/**/*" ,
27
27
],
28
28
),
29
- deps = [
29
+ interop_deps = [
30
30
"//packages/angular_devkit/schematics" ,
31
- "//packages/schematics/angular" ,
32
- "@npm//@types/node" ,
33
- "@npm//parse5-html-rewriting-stream" ,
31
+ ],
32
+ module_name = "@angular/pwa" ,
33
+ deps = [
34
+ "//:root_modules/@types/node" ,
35
+ "//:root_modules/parse5-html-rewriting-stream" ,
36
+ "//packages/schematics/angular:angular_rjs" ,
34
37
],
35
38
)
36
39
@@ -39,14 +42,17 @@ ts_json_schema(
39
42
src = "pwa/schema.json" ,
40
43
)
41
44
42
- ts_library (
45
+ ts_project (
43
46
name = "pwa_test_lib" ,
44
47
testonly = True ,
45
48
srcs = glob (["pwa/**/*_spec.ts" ]),
46
- deps = [
47
- ":pwa" ,
49
+ interop_deps = [
48
50
"//packages/angular_devkit/schematics/testing" ,
49
51
],
52
+ deps = [
53
+ ":pwa_rjs" ,
54
+ "//:root_modules/@types/jasmine" ,
55
+ ],
50
56
)
51
57
52
58
jasmine_node_test (
0 commit comments