1438585a0a
- Changed package.json to use "tsx" instead of "ts-node" for development. - Updated "@whiskeysockets/baileys" dependency to version 6.7.24. - Added error handling for unhandled rejections and uncaught exceptions in server.ts. - Implemented a reconnect mechanism for WhatsApp connection failures. - Updated tsconfig.json to use "NodeNext" module and resolution for ESM compatibility.
27 lines
590 B
JSON
27 lines
590 B
JSON
{
|
|
"name": "txbot",
|
|
"version": "1.0.0",
|
|
"main": "index.js",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "tsx src/server.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/server.js"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"description": "",
|
|
"dependencies": {
|
|
"@whiskeysockets/baileys": "6.7.24",
|
|
"express": "^5.1.0",
|
|
"qrcode": "^1.5.4"
|
|
},
|
|
"devDependencies": {
|
|
"@types/express": "^5.0.2",
|
|
"@types/qrcode": "^1.5.5",
|
|
"tsx": "^4.20.3",
|
|
"typescript": "^5.8.3"
|
|
}
|
|
}
|