ci: fix workflow sanity gate

This commit is contained in:
Peter Steinberger
2026-03-22 23:03:21 +00:00
parent ca3165a3e7
commit e0af23106c
9 changed files with 30 additions and 27 deletions

View File

@@ -3,7 +3,7 @@
import { execFileSync } from "node:child_process";
import fs from "node:fs";
import path from "node:path";
import { runAsScript } from "./lib/ts-guard-utils.mjs";
import { fileURLToPath } from "node:url";
function isBinaryBuffer(buffer) {
return buffer.includes(0);
@@ -77,4 +77,9 @@ export async function main() {
process.exitCode = 1;
}
runAsScript(import.meta.url, main);
if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
main().catch((error) => {
console.error(error);
process.exit(1);
});
}