Fence out the content of /internal/BUILD.bazel Since we don't want any of the content, generate an empty BUILD file. PiperOrigin-RevId: 232337263
diff --git a/internal/BUILD.bazel b/internal/BUILD.bazel index 4437231..73041a9 100644 --- a/internal/BUILD.bazel +++ b/internal/BUILD.bazel
@@ -116,10 +116,20 @@ ], ) +# We don't need to distribute any of the content of the BUILD.bazel file in this package +# So generate an empty marker file +genrule( + name = "generated_BUILD", + srcs = [], + # Name the output "BUILD" so it doesn't collide with InputArtifact "BUILD.bazel" + outs = ["BUILD"], + cmd = "echo \"# Marker that this directory is a Bazel package\" > $@", +) + filegroup( name = "npm_package_assets", srcs = [ - "BUILD.bazel", + ":generated_BUILD", "build_defs.bzl", "common/compilation.bzl", "common/json_marshal.bzl",