fix: bun monorepo complex deps
This commit is contained in:
14
tests/script_test/paraglide_monorepo/scripts/build-app-a.mjs
Normal file
14
tests/script_test/paraglide_monorepo/scripts/build-app-a.mjs
Normal 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-a", "build", "--", ...extraArgs],
|
||||
]) {
|
||||
const result = spawnSync(bun, args, { stdio: "inherit" });
|
||||
if (result.status !== 0) {
|
||||
process.exit(result.status ?? 1);
|
||||
}
|
||||
}
|
||||
14
tests/script_test/paraglide_monorepo/scripts/build-app-b.mjs
Normal file
14
tests/script_test/paraglide_monorepo/scripts/build-app-b.mjs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user