aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Le Brun <laurentlb@gmail.com>2020-04-02 22:20:57 +0200
committerGitHub <noreply@github.com>2020-04-02 22:20:57 +0200
commit2d0c6512910452f2c8660466ed0dcefb642adea3 (patch)
tree242278ddc2ada10a45f6fe461c145465ca30d8e0
parentdfcfe825005ffba4a7c15cd9ddac737d040d2506 (diff)
downloadbazel-skylib-2d0c6512910452f2c8660466ed0dcefb642adea3.tar.gz
Update visibility of files (#243)
Stardoc needs access to a file (with exports_files) in order to generate its documentation.
-rw-r--r--BUILD5
-rw-r--r--lib/BUILD6
-rw-r--r--rules/BUILD6
3 files changed, 13 insertions, 4 deletions
diff --git a/BUILD b/BUILD
index 9999fb5..c0ccdcd 100644
--- a/BUILD
+++ b/BUILD
@@ -4,10 +4,7 @@ licenses(["notice"])
package(default_visibility = ["//visibility:public"])
-exports_files([
- "LICENSE",
- "lib.bzl",
-])
+exports_files(["LICENSE"])
filegroup(
name = "test_deps",
diff --git a/lib/BUILD b/lib/BUILD
index 44acf46..c959bcc 100644
--- a/lib/BUILD
+++ b/lib/BUILD
@@ -4,6 +4,12 @@ licenses(["notice"])
package(default_visibility = ["//visibility:public"])
+# export bzl files for the documentation
+exports_files(
+ glob(["*.bzl"]),
+ visibility = ["//:__subpackages__"],
+)
+
bzl_library(
name = "collections",
srcs = ["collections.bzl"],
diff --git a/rules/BUILD b/rules/BUILD
index f3cfe6c..9c6c047 100644
--- a/rules/BUILD
+++ b/rules/BUILD
@@ -75,3 +75,9 @@ filegroup(
"//:__pkg__",
],
)
+
+# export bzl files for the documentation
+exports_files(
+ glob(["*.bzl"]),
+ visibility = ["//:__subpackages__"],
+)