File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
# Use of this source code is governed by an MIT-style license that can be
4
4
# found in the LICENSE file at https://angular.io/license
5
-
5
+ # @external_begin
6
6
package (default_visibility = ["//visibility:public" ])
7
7
8
8
load ("@build_bazel_rules_nodejs//:defs.bzl" , "nodejs_binary" )
@@ -21,4 +21,4 @@ nodejs_binary(
21
21
],
22
22
install_source_map_support = False ,
23
23
)
24
-
24
+ # @external_end
Original file line number Diff line number Diff line change 4
4
# found in the LICENSE file at https://angular.io/license
5
5
6
6
load ("@build_bazel_rules_typescript//:defs.bzl" , "ts_library" )
7
- load ("@build_bazel_rules_nodejs//:defs.bzl" , "nodejs_test" , "nodejs_binary" )
8
-
9
7
8
+ # @external_begin
10
9
def _ts_json_schema_interface_impl (ctx ):
11
10
args = [
12
11
ctx .files .src [0 ].path ,
@@ -50,6 +49,7 @@ _ts_json_schema_interface = rule(
50
49
"ts" : "%{out}"
51
50
},
52
51
)
52
+ # @external_end
53
53
54
54
55
55
# 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(
60
60
def ts_json_schema (name , src , data = []):
61
61
out = src .replace (".json" , ".ts" )
62
62
63
+ # @external_begin
63
64
_ts_json_schema_interface (
64
65
name = name + ".interface" ,
65
66
src = src ,
66
67
out = out ,
67
68
data = data ,
68
69
)
70
+ # @external_end
69
71
70
72
ts_library (
71
73
name = name ,
74
+ # Remove these to empty the rule, since those files are also compiled elsewhere.
75
+ # @external_begin
72
76
srcs = [
73
77
out ,
74
78
]
79
+ # @external_end
75
80
)
You can’t perform that action at this time.
0 commit comments