forge-deploy-cli
Version:
Professional CLI for local deployments with automatic subdomain routing, SSL certificates, and infrastructure management
23 lines • 901 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkVersion = checkVersion;
exports.getCurrentVersion = getCurrentVersion;
const semver_1 = __importDefault(require("semver"));
const chalk_1 = __importDefault(require("chalk"));
const CURRENT_VERSION = '1.0.0';
const MIN_NODE_VERSION = '16.0.0';
async function checkVersion() {
// Check Node.js version
const nodeVersion = process.version;
if (!semver_1.default.gte(nodeVersion, MIN_NODE_VERSION)) {
console.error(chalk_1.default.red(`Error: Node.js ${MIN_NODE_VERSION} or higher is required. You are using ${nodeVersion}`));
process.exit(1);
}
}
function getCurrentVersion() {
return CURRENT_VERSION;
}
//# sourceMappingURL=version.js.map