Skip to content

Commit 43f04d2

Browse files
committed
chore: set package default_visibility to public in nodejs/BUILD.bazel
1 parent 803f7e4 commit 43f04d2

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

nodejs/BUILD.bazel

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ load("//nodejs/private:current_node_cc_headers.bzl", "current_node_cc_headers")
33
load("//nodejs/private:nodejs_toolchains_repo.bzl", "PLATFORMS")
44
load("//nodejs/private:user_build_settings.bzl", "user_args")
55

6+
package(default_visibility = ["//visibility:public"])
7+
68
exports_files([
79
"index.for_docs.bzl",
810
"providers.bzl",
@@ -11,7 +13,6 @@ exports_files([
1113
bzl_library(
1214
name = "index.for_docs",
1315
srcs = glob(["*.bzl"]) + ["@bazel_tools//tools:bzl_srcs"],
14-
visibility = ["//visibility:public"],
1516
deps = [
1617
"//nodejs/private:bzl",
1718
"//nodejs/private/providers:bzl",
@@ -23,10 +24,7 @@ bzl_library(
2324
# attribute in order to get a node interpreter for the correct
2425
# platform.
2526
# See https://docs.bazel.build/versions/main/toolchains.html#writing-rules-that-use-toolchains
26-
toolchain_type(
27-
name = "toolchain_type",
28-
visibility = ["//visibility:public"],
29-
)
27+
toolchain_type(name = "toolchain_type")
3028

3129
[
3230
platform(
@@ -42,13 +40,9 @@ toolchain_type(
4240
user_args(
4341
name = "default_args",
4442
build_setting_default = "--preserve-symlinks",
45-
visibility = ["//visibility:public"],
4643
)
4744

4845
# This target provides the C headers for whatever the current toolchain is
4946
# for the consuming rule. It basically acts like a cc_library by forwarding
5047
# on the providers for the underlying cc_library that the toolchain is using.
51-
current_node_cc_headers(
52-
name = "current_node_cc_headers",
53-
visibility = ["//visibility:public"],
54-
)
48+
current_node_cc_headers(name = "current_node_cc_headers")

0 commit comments

Comments
 (0)