Merge "Specify exact dependencies for rollup-bin"

This commit is contained in:
Dmitrii Filippov 2020-03-30 14:30:39 +00:00 committed by Gerrit Code Review
commit a7369b99c9

View File

@ -8,8 +8,12 @@ package(default_visibility = ["//visibility:public"])
# 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: