Skip to content

Commit

Permalink
fix: allow for only stderr to be set on npm_package_bin
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Magolan authored and alexeagle committed Jun 9, 2021
1 parent 34f0a24 commit fa8f5b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/node/npm_package_bin.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def _inputs(ctx):
def _impl(ctx):
if ctx.attr.output_dir and ctx.outputs.outs:
fail("Only one of output_dir and outs may be specified")
if not ctx.attr.output_dir and not len(ctx.outputs.outs) and not ctx.attr.stdout:
fail("One of output_dir, outs or stdout must be specified")
if not ctx.attr.output_dir and not len(ctx.outputs.outs) and not ctx.attr.stdout and not ctx.attr.stderr:
fail("One of output_dir, outs, stdout or stderr must be specified")

args = ctx.actions.args()
inputs = _inputs(ctx)
Expand Down

0 comments on commit fa8f5b1

Please sign in to comment.