Update visibility of files (#243)

Stardoc needs access to a file (with exports_files) in order to
generate its documentation.
This commit is contained in:
Laurent Le Brun 2020-04-02 22:20:57 +02:00 committed by GitHub
parent dfcfe82500
commit 2d0c651291
3 changed files with 13 additions and 4 deletions

5
BUILD
View File

@ -4,10 +4,7 @@ licenses(["notice"])
package(default_visibility = ["//visibility:public"]) package(default_visibility = ["//visibility:public"])
exports_files([ exports_files(["LICENSE"])
"LICENSE",
"lib.bzl",
])
filegroup( filegroup(
name = "test_deps", name = "test_deps",

View File

@ -4,6 +4,12 @@ licenses(["notice"])
package(default_visibility = ["//visibility:public"]) package(default_visibility = ["//visibility:public"])
# export bzl files for the documentation
exports_files(
glob(["*.bzl"]),
visibility = ["//:__subpackages__"],
)
bzl_library( bzl_library(
name = "collections", name = "collections",
srcs = ["collections.bzl"], srcs = ["collections.bzl"],

View File

@ -75,3 +75,9 @@ filegroup(
"//:__pkg__", "//:__pkg__",
], ],
) )
# export bzl files for the documentation
exports_files(
glob(["*.bzl"]),
visibility = ["//:__subpackages__"],
)