UNPKG

@lunora/cli

Version:

The Lunora CLI: init, dev, deploy, codegen, run, reset, and migrate commands

22 lines (19 loc) 549 B
import { spawnSync } from 'node:child_process'; const isDockerAvailable = () => { try { return spawnSync("docker", ["info"], { stdio: "ignore" }).status === 0; } catch { return false; } }; const isRailpackAvailable = () => { if (typeof process.env.BUILDKIT_HOST !== "string" || process.env.BUILDKIT_HOST.length === 0) { return false; } try { return spawnSync("railpack", ["--version"], { stdio: "ignore" }).status === 0; } catch { return false; } }; export { isRailpackAvailable as a, isDockerAvailable as i };