Skip to content

Commit 67ea36f

Browse files
committed
fixup! build: migrate @angular-devkit/architect to npm_package
Include JSON files
1 parent 2c63962 commit 67ea36f

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

packages/angular_devkit/architect/BUILD.bazel

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ licenses(["notice"])
1212

1313
package(default_visibility = ["//visibility:public"])
1414

15-
# @external_begin
1615
ts_json_schema(
1716
name = "builder_input_schema",
1817
src = "src/input-schema.json",
@@ -37,7 +36,14 @@ ts_json_schema(
3736
name = "operator_schema",
3837
src = "builders/operator-schema.json",
3938
)
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+
)
4147

4248
ts_project(
4349
name = "architect",
@@ -56,13 +62,8 @@ ts_project(
5662
"//packages/angular_devkit/architect:src/progress-schema.ts",
5763
"//packages/angular_devkit/architect:builders/operator-schema.ts",
5864
],
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,
6667
module_name = "@angular-devkit/architect",
6768
deps = [
6869
"//:root_modules/@types/node",
@@ -104,7 +105,7 @@ npm_package(
104105
"//packages/angular_devkit/core:package.json",
105106
],
106107
tags = ["release-package"],
107-
deps = [
108+
deps = JSON_FILES + [
108109
"README.md",
109110
":architect_rjs",
110111
":license",

0 commit comments

Comments
 (0)