warpack
Version:
A build system for Warcraft III maps.
13 lines (10 loc) • 434 B
text/typescript
import { execa, type Options as ExecaOptions, type ExecaReturnValue, } from "execa";
import { fileURLToPath } from "node:url";
import { getExePath } from "./get-exe-path.js";
export async function runWarpack(args: string[], execaOptions?: ExecaOptions): Promise<ExecaReturnValue> {
const exePath = await getExePath();
return execa(fileURLToPath(exePath), args, {
stdio: "inherit",
...execaOptions,
});
}