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:ng_cli_schema_generator.bzl" , "cli_json_schema" )
10
9
load ("//tools:ts_json_schema.bzl" , "ts_json_schema" )
11
10
12
11
licenses (["notice" ])
13
12
14
13
package (default_visibility = ["//visibility:public" ])
15
14
15
+ RUNTIME_ASSETS = glob (
16
+ include = [
17
+ "bin/**/*" ,
18
+ "src/**/*.md" ,
19
+ "src/**/*.json" ,
20
+ ],
21
+ exclude = [
22
+ "lib/config/workspace-schema.json" ,
23
+ ],
24
+ ) + [
25
+ "//packages/angular/cli:lib/config/schema.json" ,
26
+ ]
27
+
16
28
ts_project (
17
29
name = "angular-cli" ,
18
30
srcs = glob (
@@ -28,18 +40,7 @@ ts_project(
28
40
"//packages/angular/cli:lib/config/workspace-schema.ts" ,
29
41
"//packages/angular/cli:src/commands/update/schematic/schema.ts" ,
30
42
],
31
- data = glob (
32
- include = [
33
- "bin/**/*" ,
34
- "src/**/*.md" ,
35
- "src/**/*.json" ,
36
- ],
37
- exclude = [
38
- "lib/config/workspace-schema.json" ,
39
- ],
40
- ) + [
41
- "//packages/angular/cli:lib/config/schema.json" ,
42
- ],
43
+ data = RUNTIME_ASSETS ,
43
44
module_name = "@angular/cli" ,
44
45
deps = [
45
46
"//:root_modules/@angular/core" ,
@@ -159,8 +160,8 @@ genrule(
159
160
cmd = "cp $(execpath //:LICENSE) $@" ,
160
161
)
161
162
162
- pkg_npm (
163
- name = "npm_package " ,
163
+ npm_package (
164
+ name = "pkg " ,
164
165
pkg_deps = [
165
166
"//packages/angular_devkit/architect:package.json" ,
166
167
"//packages/angular_devkit/build_angular:package.json" ,
@@ -170,11 +171,9 @@ pkg_npm(
170
171
"//packages/schematics/angular:package.json" ,
171
172
],
172
173
tags = ["release-package" ],
173
- deps = [
174
+ deps = RUNTIME_ASSETS + [
174
175
":README.md" ,
175
- ":angular-cli " ,
176
+ ":angular-cli_rjs " ,
176
177
":license" ,
177
- ":src/commands/update/schematic/collection.json" ,
178
- ":src/commands/update/schematic/schema.json" ,
179
178
],
180
179
)
0 commit comments