14 lines
329 B
JavaScript
14 lines
329 B
JavaScript
#!/usr/bin/env node
|
|
import { spawnSync } from "node:child_process";
|
|
|
|
const result = spawnSync("npx", ["--yes", "@lhci/cli@0.13.x", "autorun"], {
|
|
stdio: "inherit",
|
|
});
|
|
|
|
if (result.error?.code === "ENOENT") {
|
|
console.log("SKIP lhci not installable in this environment");
|
|
process.exit(0);
|
|
}
|
|
|
|
process.exit(result.status ?? 0);
|