1
1
load ("@npm//@bazel/jasmine:index.bzl" , "jasmine_node_test" )
2
- load ("//tools:defaults.bzl" , "pkg_npm" )
3
- load ("//tools:interop.bzl" , "ts_project" )
2
+ load ("//tools:defaults2.bzl" , "npm_package" , "ts_project" )
4
3
load ("//tools:ts_json_schema.bzl" , "ts_json_schema" )
5
4
6
5
# Copyright Google Inc. All Rights Reserved.
@@ -11,6 +10,19 @@ licenses(["notice"])
11
10
12
11
package (default_visibility = ["//visibility:public" ])
13
12
13
+ RUNTIME_ASSETS = [
14
+ "blank/schema.json" ,
15
+ "collection.json" ,
16
+ "package.json" ,
17
+ "schematic/schema.json" ,
18
+ ] + glob (
19
+ include = [
20
+ "blank/project-files/**/*" ,
21
+ "blank/schematic-files/**/*" ,
22
+ "schematic/files/**/*" ,
23
+ ],
24
+ )
25
+
14
26
# @angular-devkit/schematics-cli
15
27
ts_project (
16
28
name = "schematics_cli" ,
@@ -29,18 +41,7 @@ ts_project(
29
41
"//packages/angular_devkit/schematics_cli:blank/schema.ts" ,
30
42
"//packages/angular_devkit/schematics_cli:schematic/schema.ts" ,
31
43
],
32
- data = [
33
- "blank/schema.json" ,
34
- "collection.json" ,
35
- "package.json" ,
36
- "schematic/schema.json" ,
37
- ] + glob (
38
- include = [
39
- "blank/project-files/**/*" ,
40
- "blank/schematic-files/**/*" ,
41
- "schematic/files/**/*" ,
42
- ],
43
- ),
44
+ data = RUNTIME_ASSETS ,
44
45
module_name = "@angular-devkit/schematics-cli" ,
45
46
deps = [
46
47
"//:root_modules/@inquirer/prompts" ,
@@ -96,16 +97,16 @@ genrule(
96
97
cmd = "cp $(execpath //:LICENSE) $@" ,
97
98
)
98
99
99
- pkg_npm (
100
- name = "npm_package " ,
100
+ npm_package (
101
+ name = "pkg " ,
101
102
pkg_deps = [
102
103
"//packages/angular_devkit/schematics:package.json" ,
103
104
"//packages/angular_devkit/core:package.json" ,
104
105
],
105
106
tags = ["release-package" ],
106
- deps = [
107
+ deps = RUNTIME_ASSETS + [
107
108
":README.md" ,
108
109
":license" ,
109
- ":schematics_cli " ,
110
+ ":schematics_cli_rjs " ,
110
111
],
111
112
)
0 commit comments