File tree 1 file changed +18
-14
lines changed
1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change 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" )
8
- load ("//tools:interop.bzl" , "ts_project" )
7
+ load ("//tools:defaults2.bzl" , "npm_package" , "ts_project" )
9
8
load ("//tools:ts_json_schema.bzl" , "ts_json_schema" )
10
9
11
10
licenses (["notice" ])
12
11
13
12
package (default_visibility = ["//visibility:public" ])
14
13
14
+ RUNTIME_ASSETS = glob (
15
+ include = [
16
+ "pwa/*.js" ,
17
+ "pwa/*.mjs" ,
18
+ "pwa/files/**/*" ,
19
+ ],
20
+ ) + [
21
+ "package.json" ,
22
+ "collection.json" ,
23
+ "pwa/schema.json" ,
24
+ ]
25
+
15
26
ts_project (
16
27
name = "pwa" ,
17
28
srcs = [
18
29
"pwa/index.ts" ,
19
30
"//packages/angular/pwa:pwa/schema.ts" ,
20
31
],
21
- data = [
22
- "collection.json" ,
23
- "pwa/schema.json" ,
24
- ] + glob (
25
- include = [
26
- "pwa/files/**/*" ,
27
- ],
28
- ),
32
+ data = RUNTIME_ASSETS ,
29
33
module_name = "@angular/pwa" ,
30
34
deps = [
31
35
"//:root_modules/@types/node" ,
@@ -63,16 +67,16 @@ genrule(
63
67
cmd = "cp $(execpath //:LICENSE) $@" ,
64
68
)
65
69
66
- pkg_npm (
67
- name = "npm_package " ,
70
+ npm_package (
71
+ name = "pkg " ,
68
72
pkg_deps = [
69
73
"//packages/angular_devkit/schematics:package.json" ,
70
74
"//packages/schematics/angular:package.json" ,
71
75
],
72
76
tags = ["release-package" ],
73
- deps = [
77
+ deps = RUNTIME_ASSETS + [
74
78
":README.md" ,
75
79
":license" ,
76
- ":pwa " ,
80
+ ":pwa_rjs " ,
77
81
],
78
82
)
You can’t perform that action at this time.
0 commit comments