UNPKG

alinea

Version:
18 lines (16 loc) 441 B
import { compareVersions } from "../../chunks/chunk-5RKITIG5.js"; import "../../chunks/chunk-NZLE2WMY.js"; // src/cli/util/EnsureNode.ts function ensureNode() { if (globalThis.Bun) return; if (!process.version) return; const isValidNode = compareVersions.compare(process.version, "18.0.0", ">="); if (isValidNode) return; console.error("Alinea requires Node version 18 or higher"); process.exit(1); } export { ensureNode };