@zohodesk/client_build_tool
Version:
A CLI tool to build web applications and client libraries
17 lines (13 loc) • 475 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.doBasicRequirementCheck = doBasicRequirementCheck;
/* eslint-disable no-throw-literal */
function doBasicRequirementCheck() {
const majorV = Number(process.version.slice(1, 4));
if (majorV >= 14 && majorV <= 18) {
return true;
}
throw `your node version not compatible with this cli please update node version to 14 - 18, and your current version is ${process.version}`;
}