Merge "Specify exact dependencies for rollup-bin"
diff --git a/tools/node_tools/BUILD b/tools/node_tools/BUILD
index 018674c..4019542 100644
--- a/tools/node_tools/BUILD
+++ b/tools/node_tools/BUILD
@@ -8,8 +8,12 @@
 # Usage: rollup_bundle(rollup_bin = "//tools/node_tools:rollup-bin, ...)
 nodejs_binary(
     name = "rollup-bin",
+    # Define only minimal required dependencies.
+    # Otherwise remote build execution fails with the too many
+    # files error when it builds :release target.
     data = [
-        "@tools_npm//:node_modules",
+        "@tools_npm//rollup",
+        "@tools_npm//rollup-plugin-terser",
     ],
     # The entry point must be "@tools_npm:node_modules/rollup/dist/bin/rollup",
     # But bazel doesn't run it correctly with the following command line: