From 97ab937a8853c6ee5530a3e7789ec917769b25e7 Mon Sep 17 00:00:00 2001 From: Keen Yee Liau Date: Thu, 4 Apr 2019 10:15:12 -0700 Subject: [PATCH] fix(npm_install) exclude test directory PR closes https://github.com/bazelbuild/rules_nodejs/issues/652 --- internal/npm_install/BUILD.bazel | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/npm_install/BUILD.bazel b/internal/npm_install/BUILD.bazel index a768416dd2..740870555d 100644 --- a/internal/npm_install/BUILD.bazel +++ b/internal/npm_install/BUILD.bazel @@ -20,6 +20,9 @@ filegroup( filegroup( name = "package_contents", - srcs = glob(["*"]), + srcs = glob( + include = ["*"], + exclude = ["test"], + ), visibility = ["//:__pkg__"], )