From 8ba25d95048d134873e785509bf145e714cd613f Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Thu, 13 Aug 2020 03:40:34 +0300 Subject: [PATCH] Update Node.js version ranges in package.json and index.js --- package.json | 2 +- src/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5fe3846..3d716da 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "supervisor": "^0.12.0" }, "engines": { - "node": ">=10.0.0 <14.0.0" + "node": ">=12.0.0 <14.0.0" }, "husky": { "hooks": { diff --git a/src/index.js b/src/index.js index 588111a..cde9e0e 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,7 @@ // Verify NodeJS version const nodeMajorVersion = parseInt(process.versions.node.split(".")[0], 10); -if (nodeMajorVersion < 11) { - console.error("Unsupported NodeJS version! Please install Node.js 11, 12, 13, or 14."); +if (nodeMajorVersion < 12) { + console.error("Unsupported NodeJS version! Please install Node.js 12, 13, or 14."); process.exit(1); }