angular/aio/tools/examples/shared/BUILD.bazel
Paul Gschwendtner 0125677cfe build: always ensure node_modules folders are not picked up in AIO (#48329)
AIO has two risk places where `node_modules` folders may exist and may
be accidentally picked up by Bazel- even though they are already added
as part of `.bazelignore` and made visible through `.gitignore`. It
doesn't hurt instructing Bazel to always ignore `node_modules` as part
of the `glob` instruction.

Co-authored-by: Joey Perrott <josephperrott@gmail.com>

PR Close #48329
2022-12-02 09:47:43 -08:00

12 lines
270 B
Text

package(default_visibility = ["//visibility:public"])
filegroup(
name = "shared",
srcs = glob(
["**"],
exclude = [
"BUILD.bazel",
"**/node_modules/**", # Node modules may exist from the legacy setup.
],
),
)