2024-03-22 18:01:37 +01:00
|
|
|
import fs from "node:fs";
|
2024-02-12 15:31:04 +01:00
|
|
|
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",
|
|
|
|
}
|
|
|
|
);
|
2024-03-22 18:01:37 +01:00
|
|
|
|
|
|
|
fs.copyFileSync("packages/backend-rs/index.js", "packages/backend-rs/built/index.js");
|
2024-02-12 15:31:04 +01:00
|
|
|
})();
|