Skip to content

Commit

Permalink
refactor: remove //js:enable_runfiles and use @aspect_bazel_lib//lib:…
Browse files Browse the repository at this point in the history
…enable_runfiles instead (#1605)
  • Loading branch information
gregmagolan committed Apr 19, 2024
1 parent 5d05f99 commit ff4097a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
6 changes: 0 additions & 6 deletions js/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ exports_files(
visibility = ["//docs:__pkg__"],
)

config_setting(
name = "enable_runfiles",
values = {"enable_runfiles": "true"},
visibility = ["//visibility:public"],
)

bzl_library(
name = "defs",
srcs = ["defs.bzl"],
Expand Down
4 changes: 2 additions & 2 deletions js/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ load(
def js_binary(**kwargs):
_js_binary(
enable_runfiles = select({
Label("@aspect_rules_js//js:enable_runfiles"): True,
Label("@aspect_bazel_lib//lib:enable_runfiles"): True,
"//conditions:default": False,
}),
**kwargs
Expand All @@ -38,7 +38,7 @@ def js_binary(**kwargs):
def js_test(**kwargs):
_js_test(
enable_runfiles = select({
Label("@aspect_rules_js//js:enable_runfiles"): True,
Label("@aspect_bazel_lib//lib:enable_runfiles"): True,
"//conditions:default": False,
}),
**kwargs
Expand Down
2 changes: 1 addition & 1 deletion js/private/js_run_devserver.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def js_run_devserver(
rule_to_execute(
name = name,
enable_runfiles = select({
"@aspect_rules_js//js:enable_runfiles": True,
"@aspect_bazel_lib//lib:enable_runfiles": True,
"//conditions:default": False,
}),
entry_point = "@aspect_rules_js//js/private:js_devserver_entrypoint",
Expand Down
4 changes: 2 additions & 2 deletions js/private/test/coverage/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ coverage_fail_test(
name = "fail",
data = ["lib.js"],
enable_runfiles = select({
"@aspect_rules_js//js:enable_runfiles": True,
"@aspect_bazel_lib//lib:enable_runfiles": True,
"//conditions:default": False,
}),
entry_point = "lib.js",
Expand Down Expand Up @@ -52,7 +52,7 @@ coverage_pass_test(
name = "pass",
data = ["lib.js"],
enable_runfiles = select({
"@aspect_rules_js//js:enable_runfiles": True,
"@aspect_bazel_lib//lib:enable_runfiles": True,
"//conditions:default": False,
}),
entry_point = "lib.js",
Expand Down
2 changes: 1 addition & 1 deletion js/private/test/create_launcher/custom_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ _custom_test = rule(
def custom_test(**kwargs):
_custom_test(
enable_runfiles = select({
"//js:enable_runfiles": True,
"@aspect_bazel_lib//lib:enable_runfiles": True,
"//conditions:default": False,
}),
**kwargs
Expand Down

0 comments on commit ff4097a

Please sign in to comment.