@@ -12,7 +12,6 @@ licenses(["notice"])
12
12
13
13
package (default_visibility = ["//visibility:public" ])
14
14
15
- # @external_begin
16
15
ts_json_schema (
17
16
name = "builder_input_schema" ,
18
17
src = "src/input-schema.json" ,
@@ -37,7 +36,14 @@ ts_json_schema(
37
36
name = "operator_schema" ,
38
37
src = "builders/operator-schema.json" ,
39
38
)
40
- # @external_end
39
+
40
+ JSON_FILES = glob (
41
+ include = ["**/*.json" ],
42
+ exclude = [
43
+ # NB: we need to exclude the nested node_modules that is laid out by yarn workspaces
44
+ "node_modules/**" ,
45
+ ],
46
+ )
41
47
42
48
ts_project (
43
49
name = "architect" ,
@@ -56,13 +62,8 @@ ts_project(
56
62
"//packages/angular_devkit/architect:src/progress-schema.ts" ,
57
63
"//packages/angular_devkit/architect:builders/operator-schema.ts" ,
58
64
],
59
- data = glob (
60
- include = ["**/*.json" ],
61
- exclude = [
62
- # NB: we need to exclude the nested node_modules that is laid out by yarn workspaces
63
- "node_modules/**" ,
64
- ],
65
- ),
65
+ # Ensure tests can execute the output JS, relying on schemas/JSON files.
66
+ data = JSON_FILES ,
66
67
module_name = "@angular-devkit/architect" ,
67
68
deps = [
68
69
"//:root_modules/@types/node" ,
@@ -104,7 +105,7 @@ npm_package(
104
105
"//packages/angular_devkit/core:package.json" ,
105
106
],
106
107
tags = ["release-package" ],
107
- deps = [
108
+ deps = JSON_FILES + [
108
109
"README.md" ,
109
110
":architect_rjs" ,
110
111
":license" ,
0 commit comments