Files
rules_bun/tests/script_test/paraglide_monorepo/scripts/build-app-a.mjs
2026-03-08 03:29:54 +01:00

15 lines
398 B
JavaScript

import { spawnSync } from "node:child_process";
const bun = process.execPath;
const extraArgs = process.argv.slice(2);
for (const args of [
["run", "--cwd", "./packages/i18n", "build"],
["run", "--cwd", "./packages/app-a", "build", "--", ...extraArgs],
]) {
const result = spawnSync(bun, args, { stdio: "inherit" });
if (result.status !== 0) {
process.exit(result.status ?? 1);
}
}