project: Move to ESM Modules

This commit is contained in:
Rajeh Taher
2025-07-17 13:54:17 +03:00
parent 19124426b2
commit 787aed88b8
69 changed files with 5143 additions and 4757 deletions
+4 -4
View File
@@ -1,5 +1,6 @@
{
"name": "baileys",
"type": "module",
"version": "6.7.18",
"description": "A WebSockets library for interacting with WhatsApp Web",
"keywords": [
@@ -26,7 +27,7 @@
"changelog:last": "conventional-changelog -p angular -r 2",
"changelog:preview": "conventional-changelog -p angular -u",
"changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"example": "node --inspect -r ts-node/register Example/example.ts",
"example": "tsx ./Example/example.ts",
"gen:protobuf": "sh WAProto/GenerateStatics.sh",
"format": "prettier --write \"src/**/*.{ts,js,json,md}\"",
"lint": "eslint src --ext .js,.ts",
@@ -43,14 +44,13 @@
"async-mutex": "^0.5.0",
"axios": "^1.6.0",
"libsignal": "github:WhiskeySockets/libsignal-node",
"lodash": "^4.17.21",
"music-metadata": "^7.12.3",
"pino": "^9.6",
"protobufjs": "^7.2.4",
"ws": "^8.13.0"
},
"devDependencies": {
"@types/jest": "^27.5.1",
"@types/jest": "^30.0.0",
"@types/node": "^16.0.0",
"@types/ws": "^8.0.0",
"@typescript-eslint/eslint-plugin": "^8.32.0",
@@ -70,7 +70,7 @@
"release-it": "^15.10.3",
"sharp": "^0.34.2",
"ts-jest": "^29.3.2",
"ts-node": "^10.8.1",
"tsx": "^4.20.3",
"typedoc": "^0.27.9",
"typedoc-plugin-markdown": "4.4.2",
"typescript": "^5.8.2"