Update Node.js version ranges in package.json and index.js

cshd
Dragory 2020-08-13 03:40:34 +03:00
parent 9df221aa02
commit 8ba25d9504
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@
"supervisor": "^0.12.0" "supervisor": "^0.12.0"
}, },
"engines": { "engines": {
"node": ">=10.0.0 <14.0.0" "node": ">=12.0.0 <14.0.0"
}, },
"husky": { "husky": {
"hooks": { "hooks": {

View File

@ -1,7 +1,7 @@
// Verify NodeJS version // Verify NodeJS version
const nodeMajorVersion = parseInt(process.versions.node.split(".")[0], 10); const nodeMajorVersion = parseInt(process.versions.node.split(".")[0], 10);
if (nodeMajorVersion < 11) { if (nodeMajorVersion < 12) {
console.error("Unsupported NodeJS version! Please install Node.js 11, 12, 13, or 14."); console.error("Unsupported NodeJS version! Please install Node.js 12, 13, or 14.");
process.exit(1); process.exit(1);
} }