You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/scripts/tsdown-build.mjs

20 lines
419 B
JavaScript

#!/usr/bin/env node
import { spawnSync } from "node:child_process";
const logLevel = process.env.OPENCLAW_BUILD_VERBOSE ? "info" : "warn";
const result = spawnSync(
"pnpm",
["exec", "tsdown", "--config-loader", "unrun", "--logLevel", logLevel],
{
stdio: "inherit",
shell: process.platform === "win32",
},
);
if (typeof result.status === "number") {
process.exit(result.status);
}
process.exit(1);