diff --git a/BUILD b/BUILD index fdccf79d..6dd357c8 100644 --- a/BUILD +++ b/BUILD @@ -86,6 +86,8 @@ filegroup( "WORKSPACE.bzlmod", "//lib:distribution", "//rules:distribution", + "//rules/directory:distribution", + "//rules/directory/private:distribution", "//rules/private:distribution", "//toolchains/unittest:distribution", ] + glob(["*.bzl"]), diff --git a/rules/directory/BUILD b/rules/directory/BUILD index c2e7de8f..bfa0598a 100644 --- a/rules/directory/BUILD +++ b/rules/directory/BUILD @@ -47,3 +47,14 @@ bzl_library( ":providers", ], ) + +# The files needed for distribution +filegroup( + name = "distribution", + srcs = [ + "BUILD", + ] + glob(["*.bzl"]), + visibility = [ + "//:__pkg__", + ], +) diff --git a/rules/directory/private/BUILD b/rules/directory/private/BUILD index 718474f2..6e991620 100644 --- a/rules/directory/private/BUILD +++ b/rules/directory/private/BUILD @@ -24,3 +24,14 @@ bzl_library( "//lib:paths", ], ) + +# The files needed for distribution +filegroup( + name = "distribution", + srcs = [ + "BUILD", + ] + glob(["*.bzl"]), + visibility = [ + "//:__pkg__", + ], +)