Skip to content

Commit 3fca6bc

Browse files
committed
bazel format
1 parent 0406774 commit 3fca6bc

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

tools/highlight-files/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ ts_library(
88
srcs = glob(["**/*.ts"]),
99
tsconfig = ":tsconfig.json",
1010
deps = [
11-
"@npm//@types/node",
11+
"//tools/region-parser",
1212
"@npm//@types/fs-extra",
13-
"//tools/region-parser"
13+
"@npm//@types/node",
1414
],
1515
)
1616

tools/highlight-files/index.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def _highlight_files(ctx):
3030
# be processed by the highlight binary.
3131
args.add_all(input_files)
3232

33-
3433
# Run the highlight-files executable that highlights the specified source files.
3534
ctx.actions.run(
3635
inputs = input_files,

tools/package-docs-content/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ nodejs_binary(
77
name = "package-docs-content",
88
data = [
99
":sources",
10-
"@npm//fs-extra"
10+
"@npm//fs-extra",
1111
],
1212
entry_point = ":package-docs-content.ts",
1313
)
@@ -17,7 +17,7 @@ ts_library(
1717
srcs = glob(["**/*.ts"]),
1818
tsconfig = ":tsconfig.json",
1919
deps = [
20-
"@npm//@types/node",
2120
"@npm//@types/fs-extra",
21+
"@npm//@types/node",
2222
],
2323
)

tools/package-docs-content/index.bzl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,12 @@ def _package_docs_content(ctx):
1313
# repeat `docs-content` is for
1414
output_dir = ctx.actions.declare_directory("%s/%s" % (ctx.attr.name, ctx.attr.name))
1515

16-
17-
1816
# Support passing arguments through a parameter file. This is necessary because on Windows
1917
# there is an argument limit and we need to handle a large amount of input files. Bazel
2018
# switches between parameter file and normal argument passing based on the operating system.
2119
# Read more here: https://docs.bazel.build/versions/master/skylark/lib/Args.html#use_param_file
2220
args.use_param_file(param_file_arg = "--param-file=%s", use_always = True)
2321

24-
2522
# Walk through each defined input target and the associated section and compute the
2623
# output file which will be added to the executable arguments.
2724
for input_target, section_name in ctx.attr.srcs.items():
@@ -44,8 +41,6 @@ def _package_docs_content(ctx):
4441
else:
4542
expected_out_path = "%s/%s" % (output_dir.path, section_relative_file_name)
4643

47-
48-
4944
# Pass the input file path and the output file path to the packager executable. We need
5045
# to do this for each file because we cannot determine the general path to the output
5146
# directory in a reliable way because Bazel targets cannot just "declare" a directory.

0 commit comments

Comments
 (0)