Skip to content

Commit 3127fed

Browse files
committed
ci: remove external BUILD code that should not be internal
1 parent af96ccf commit 3127fed

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

tools/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Use of this source code is governed by an MIT-style license that can be
44
# found in the LICENSE file at https://angular.io/license
5-
5+
# @external_begin
66
package(default_visibility = ["//visibility:public"])
77

88
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
@@ -21,4 +21,4 @@ nodejs_binary(
2121
],
2222
install_source_map_support = False,
2323
)
24-
24+
# @external_end

tools/ts_json_schema.bzl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
# found in the LICENSE file at https://angular.io/license
55

66
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
7-
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_test", "nodejs_binary")
8-
97

8+
# @external_begin
109
def _ts_json_schema_interface_impl(ctx):
1110
args = [
1211
ctx.files.src[0].path,
@@ -50,6 +49,7 @@ _ts_json_schema_interface = rule(
5049
"ts": "%{out}"
5150
},
5251
)
52+
# @external_end
5353

5454

5555
# Generates a library that contains the interface for a JSON Schema file. Takes a single `src`
@@ -60,16 +60,21 @@ _ts_json_schema_interface = rule(
6060
def ts_json_schema(name, src, data = []):
6161
out = src.replace(".json", ".ts")
6262

63+
# @external_begin
6364
_ts_json_schema_interface(
6465
name = name + ".interface",
6566
src = src,
6667
out = out,
6768
data = data,
6869
)
70+
# @external_end
6971

7072
ts_library(
7173
name = name,
74+
# Remove these to empty the rule, since those files are also compiled elsewhere.
75+
# @external_begin
7276
srcs = [
7377
out,
7478
]
79+
# @external_end
7580
)

0 commit comments

Comments
 (0)