Skip to content

Commit

Permalink
fix(rari): propagate rari exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Jan 6, 2025
1 parent bbe07c5 commit c042f8c
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.exit(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.exit(code);
});

0 comments on commit c042f8c

Please sign in to comment.