Skip to content

Commit

Permalink
Add custom mnemonic to WebBinary rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sbalabanov-zz committed Jul 7, 2023
1 parent 395e97c commit 418b245
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rules/web-monorepo.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def _web_binary_impl(ctx):
)

ctx.actions.run_shell(
mnemonic = ctx.attr.mnemonic,,
command = """
export NODE_PRESERVE_SYMLINKS='{preserve_symlinks}';
export CWD=$(cd `dirname '{srcdir}'` && pwd);
Expand Down Expand Up @@ -144,6 +145,10 @@ web_binary = rule(
"skip_pnp": attr.bool(
default = False,
),
"mnemonic": attr.string(
default = "WebBinary",
doc = "Custom one-word name of the rule",
),
},
executable = True,
outputs = {
Expand Down

0 comments on commit 418b245

Please sign in to comment.