@@ -3,6 +3,8 @@ load("//nodejs/private:current_node_cc_headers.bzl", "current_node_cc_headers")
3
3
load ("//nodejs/private:nodejs_toolchains_repo.bzl" , "PLATFORMS" )
4
4
load ("//nodejs/private:user_build_settings.bzl" , "user_args" )
5
5
6
+ package (default_visibility = ["//visibility:public" ])
7
+
6
8
exports_files ([
7
9
"index.for_docs.bzl" ,
8
10
"providers.bzl" ,
@@ -11,7 +13,6 @@ exports_files([
11
13
bzl_library (
12
14
name = "index.for_docs" ,
13
15
srcs = glob (["*.bzl" ]) + ["@bazel_tools//tools:bzl_srcs" ],
14
- visibility = ["//visibility:public" ],
15
16
deps = [
16
17
"//nodejs/private:bzl" ,
17
18
"//nodejs/private/providers:bzl" ,
@@ -23,10 +24,7 @@ bzl_library(
23
24
# attribute in order to get a node interpreter for the correct
24
25
# platform.
25
26
# 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" )
30
28
31
29
[
32
30
platform (
@@ -42,13 +40,9 @@ toolchain_type(
42
40
user_args (
43
41
name = "default_args" ,
44
42
build_setting_default = "--preserve-symlinks" ,
45
- visibility = ["//visibility:public" ],
46
43
)
47
44
48
45
# This target provides the C headers for whatever the current toolchain is
49
46
# for the consuming rule. It basically acts like a cc_library by forwarding
50
47
# 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