build: reduce build log noise

This commit is contained in:
Peter Steinberger
2026-03-08 04:12:32 +00:00
parent a035a3ce48
commit dd8fd98ad4
5 changed files with 95 additions and 49 deletions

19
scripts/tsdown-build.mjs Normal file
View File

@@ -0,0 +1,19 @@
#!/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);