Skip to content

Commit c47b770

Browse files
authored
fix(builtin): provide proper error if npm_package_bin has no outs (#2557)
1 parent e92bc7a commit c47b770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/node/npm_package_bin.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _inputs(ctx):
4848
def _impl(ctx):
4949
if ctx.attr.output_dir and ctx.outputs.outs:
5050
fail("Only one of output_dir and outs may be specified")
51-
if not ctx.attr.output_dir and not ctx.outputs.outs and not ctx.attr.stdout:
51+
if not ctx.attr.output_dir and not len(ctx.outputs.outs) and not ctx.attr.stdout:
5252
fail("One of output_dir, outs or stdout must be specified")
5353

5454
args = ctx.actions.args()

0 commit comments

Comments
 (0)