File tree Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change 44# found in the LICENSE file at https://angular.dev/license
55
66load ("@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" )
98load ("//tools:ts_json_schema.bzl" , "ts_json_schema" )
109
1110licenses (["notice" ])
1211
1312package (default_visibility = ["//visibility:public" ])
1413
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+
1526ts_project (
1627 name = "pwa" ,
1728 srcs = [
1829 "pwa/index.ts" ,
1930 "//packages/angular/pwa:pwa/schema.ts" ,
2031 ],
21- data = [
22- "collection.json" ,
23- "pwa/schema.json" ,
24- ] + glob (
25- include = [
26- "pwa/files/**/*" ,
27- ],
28- ),
32+ data = RUNTIME_ASSETS ,
2933 module_name = "@angular/pwa" ,
3034 deps = [
3135 "//:root_modules/@types/node" ,
@@ -63,16 +67,16 @@ genrule(
6367 cmd = "cp $(execpath //:LICENSE) $@" ,
6468)
6569
66- pkg_npm (
67- name = "npm_package " ,
70+ npm_package (
71+ name = "pkg " ,
6872 pkg_deps = [
6973 "//packages/angular_devkit/schematics:package.json" ,
7074 "//packages/schematics/angular:package.json" ,
7175 ],
7276 tags = ["release-package" ],
73- deps = [
77+ deps = RUNTIME_ASSETS + [
7478 ":README.md" ,
7579 ":license" ,
76- ":pwa " ,
80+ ":pwa_rjs " ,
7781 ],
7882)
You can’t perform that action at this time.
0 commit comments