fix: bun monorepo complex deps

This commit is contained in:
eric
2026-03-08 03:29:54 +01:00
parent 81e9b93914
commit d7a6d6b0ba
24 changed files with 804 additions and 10 deletions

View File

@@ -0,0 +1,14 @@
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-b", "build", "--", ...extraArgs],
]) {
const result = spawnSync(bun, args, { stdio: "inherit" });
if (result.status !== 0) {
process.exit(result.status ?? 1);
}
}