Skip to content

Commit

Permalink
fix(rari): propagate rari exit code (#12397)
Browse files Browse the repository at this point in the history
* fix(rari): propagate rari exit code

* Apply suggestions from code review

Co-authored-by: Florian Dieminger <[email protected]>

---------

Co-authored-by: Florian Dieminger <[email protected]>
  • Loading branch information
caugner and fiji-flo authored Jan 7, 2025
1 parent 87463b5 commit 3865ef0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion bins/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ config({

process.env.BUILD_OUT_ROOT = process.env.BUILD_OUT_ROOT || BUILD_OUT_ROOT;

spawn(rariBin, ["build", ...process.argv.slice(2)], { stdio: "inherit" });
const child = spawn(rariBin, ["build", ...process.argv.slice(2)], {
stdio: "inherit",
});

child.on("close", (code) => {
process.exitCode = code;
});
8 changes: 7 additions & 1 deletion bins/tool.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ config({

process.env.BUILD_OUT_ROOT = process.env.BUILD_OUT_ROOT || BUILD_OUT_ROOT;

spawn(rariBin, ["content", ...process.argv.slice(2)], { stdio: "inherit" });
const child = spawn(rariBin, ["content", ...process.argv.slice(2)], {
stdio: "inherit",
});

child.on("close", (code) => {
process.exitCode = code;
});

0 comments on commit 3865ef0

Please sign in to comment.