UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

21 lines (19 loc) 453 B
import { compareVersions } from "../../chunks/chunk-ZQJ6MIYG.js"; import "../../chunks/chunk-U5RRZUYZ.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 };