hippofish/scripts/build.mjs
naskya b4c148a655
dev: build backend-rs and firefish-js first
these packages are imported in other places
2024-02-12 23:31:04 +09:00

35 lines
614 B
JavaScript

import path, { join } from "node:path";
import { fileURLToPath } from "node:url";
import { execa } from "execa";
(async () => {
const __dirname = path.dirname(fileURLToPath(import.meta.url));
await execa(
"pnpm", [
"--recursive",
"--parallel",
"--filter=backend-rs",
"--filter=firefish-js",
"run",
"build",
], {
cwd: join(__dirname, "/../"),
stdio: "inherit",
}
);
await execa(
"pnpm", [
"--recursive",
"--parallel",
"--filter=!backend-rs",
"--filter=!firefish-js",
"run",
"build",
], {
cwd: join(__dirname, "/../"),
stdio: "inherit",
}
);
})();