fix: add node 18 + 20 compatibility

This commit is contained in:
NGPixel
2023-08-10 17:15:02 -04:00
parent d75fc76c0c
commit 3855d2c853
10 changed files with 197 additions and 16 deletions

View File

@@ -11,7 +11,7 @@ const { gte } = require('semver')
// ----------------------------------------
// Check Node.js version
// ----------------------------------------
if (gte(process.version, '18.0.0')) {
if (gte(process.version, '21.0.0')) {
console.error('You\'re using an unsupported Node.js version. Please read the requirements.')
process.exit(1)
}