mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
package!: set new Node version minimum
breaking change
This commit is contained in:
10
engine-requirements.js
Normal file
10
engine-requirements.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const major = parseInt(process.versions.node.split('.')[0], 10);
|
||||
|
||||
if (major < 20) {
|
||||
console.error(
|
||||
`\n❌ This package requires Node.js 20+ to run reliably.\n` +
|
||||
` You are using Node.js ${process.versions.node}.\n` +
|
||||
` Please upgrade to Node.js 20+ to proceed.\n`
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
18
package.json
18
package.json
@@ -1,23 +1,17 @@
|
||||
{
|
||||
"name": "baileys",
|
||||
"version": "6.7.16",
|
||||
"description": "WhatsApp API",
|
||||
"description": "A WebSockets library for interacting with WhatsApp Web",
|
||||
"keywords": [
|
||||
"whatsapp",
|
||||
"js-whatsapp",
|
||||
"whatsapp-api",
|
||||
"whatsapp-web",
|
||||
"whatsapp-chat",
|
||||
"whatsapp-group",
|
||||
"automation",
|
||||
"multi-device"
|
||||
"automation"
|
||||
],
|
||||
"homepage": "https://github.com/WhiskeySockets/Baileys",
|
||||
"repository": {
|
||||
"url": "git@github.com:WhiskeySockets/Baileys.git"
|
||||
},
|
||||
"license": "MIT",
|
||||
"author": "Adhiraj Singh",
|
||||
"author": "Rajeh Taher",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
"files": [
|
||||
@@ -38,6 +32,7 @@
|
||||
"lint:fix": "yarn lint --fix",
|
||||
"prepack": "tsc",
|
||||
"prepare": "tsc",
|
||||
"preinstall": "node ./engine-requirements.js",
|
||||
"release": "release-it",
|
||||
"test": "jest"
|
||||
},
|
||||
@@ -100,5 +95,8 @@
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@1.22.19"
|
||||
"packageManager": "yarn@1.22.19",
|
||||
"engines": {
|
||||
"node": ">=20.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user