Skip to content

Commit 3228c5b

Browse files
authored
Update ui.bzl
Signed-off-by: Duck <70207455+entlein@users.noreply.github.com>
1 parent 66a552f commit 3228c5b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bazel/ui.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ def _pl_webpack_library_impl(ctx):
8787
'pushd "$TMPPATH/src/ui" &> /dev/null',
8888
'tar -xzf "$BASE_PATH/{}"'.format(ctx.file.deps.path),
8989
'mv -f "$BASE_PATH/{}" src/pages/credits/licenses.json'.format(ctx.file.licenses.path),
90-
"yarn build_prod",
90+
"retval=0",
91+
"output=`yarn build_prod 2>&1` || retval=$?",
92+
'[ "$retval" -eq 0 ] || (echo $output; echo "Build Failed with Code: $retval"; exit $retval)',
9193
'cp dist/bundle.tar.gz "$BASE_PATH/{}"'.format(out.path),
9294
] + ui_shared_cmds_finish
9395

0 commit comments

Comments
 (0)