File tree Expand file tree Collapse file tree 4 files changed +4
-10
lines changed Expand file tree Collapse file tree 4 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ ts_library(
8
8
srcs = glob (["**/*.ts" ]),
9
9
tsconfig = ":tsconfig.json" ,
10
10
deps = [
11
- "@npm//@types/node " ,
11
+ "//tools/region-parser " ,
12
12
"@npm//@types/fs-extra" ,
13
- "//tools/region-parser"
13
+ "@npm//@types/node" ,
14
14
],
15
15
)
16
16
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ def _highlight_files(ctx):
30
30
# be processed by the highlight binary.
31
31
args .add_all (input_files )
32
32
33
-
34
33
# Run the highlight-files executable that highlights the specified source files.
35
34
ctx .actions .run (
36
35
inputs = input_files ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ nodejs_binary(
7
7
name = "package-docs-content" ,
8
8
data = [
9
9
":sources" ,
10
- "@npm//fs-extra"
10
+ "@npm//fs-extra" ,
11
11
],
12
12
entry_point = ":package-docs-content.ts" ,
13
13
)
@@ -17,7 +17,7 @@ ts_library(
17
17
srcs = glob (["**/*.ts" ]),
18
18
tsconfig = ":tsconfig.json" ,
19
19
deps = [
20
- "@npm//@types/node" ,
21
20
"@npm//@types/fs-extra" ,
21
+ "@npm//@types/node" ,
22
22
],
23
23
)
Original file line number Diff line number Diff line change @@ -13,15 +13,12 @@ def _package_docs_content(ctx):
13
13
# repeat `docs-content` is for
14
14
output_dir = ctx .actions .declare_directory ("%s/%s" % (ctx .attr .name , ctx .attr .name ))
15
15
16
-
17
-
18
16
# Support passing arguments through a parameter file. This is necessary because on Windows
19
17
# there is an argument limit and we need to handle a large amount of input files. Bazel
20
18
# switches between parameter file and normal argument passing based on the operating system.
21
19
# Read more here: https://docs.bazel.build/versions/master/skylark/lib/Args.html#use_param_file
22
20
args .use_param_file (param_file_arg = "--param-file=%s" , use_always = True )
23
21
24
-
25
22
# Walk through each defined input target and the associated section and compute the
26
23
# output file which will be added to the executable arguments.
27
24
for input_target , section_name in ctx .attr .srcs .items ():
@@ -44,8 +41,6 @@ def _package_docs_content(ctx):
44
41
else :
45
42
expected_out_path = "%s/%s" % (output_dir .path , section_relative_file_name )
46
43
47
-
48
-
49
44
# Pass the input file path and the output file path to the packager executable. We need
50
45
# to do this for each file because we cannot determine the general path to the output
51
46
# directory in a reliable way because Bazel targets cannot just "declare" a directory.
You can’t perform that action at this time.
0 commit comments