2023-03-29 23:02:30 +00:00
|
|
|
import { spawn as cpSpawn, SpawnOptions } from "child_process";
|
|
|
|
import { join } from "path";
|
|
|
|
|
|
|
|
const EXT = process.platform === "win32" ? ".cmd" : "";
|
|
|
|
|
|
|
|
const OPTS: SpawnOptions = {
|
|
|
|
stdio: "inherit",
|
|
|
|
};
|
|
|
|
|
|
|
|
function spawn(bin: string, args: string[]) {
|
|
|
|
cpSpawn(join("node_modules", ".bin", bin + EXT), args, OPTS);
|
|
|
|
}
|
|
|
|
|
2023-04-09 01:06:19 +00:00
|
|
|
spawn("tsx", ["scripts/build/build.mts", "--", "--watch", "--dev"]);
|
2023-03-29 23:02:30 +00:00
|
|
|
spawn("electron", ["."]);
|