Skip to content

Commit 7f6aebf

Browse files
committed
fix: switch to bundled executable to fix global install crash
- Point bin to dist/index.js (bundled with dependencies) - Include dist in published files - Add prepublishOnly script to ensure build before publish - Bump version to 1.5.0-dev.13
1 parent 5bf65fc commit 7f6aebf

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"name": "@muhammedaksam/waha-tui",
3-
"version": "1.5.0-dev.12",
3+
"version": "1.5.0-dev.13",
44
"description": "TUI client for WhatsApp using WAHA (WhatsApp HTTP API) - manage chats, send messages, and more from your terminal",
55
"module": "src/index.ts",
66
"type": "module",
77
"bin": {
8-
"waha-tui": "./src/index.ts"
8+
"waha-tui": "./dist/index.js"
99
},
1010
"files": [
1111
"src",
12-
"patches"
12+
"patches",
13+
"dist"
1314
],
1415
"author": "Muhammed Mustafa AKŞAM <info@muhammedaksam.com.tr> (https://github.com/muhammedaksam)",
1516
"license": "MIT",
@@ -49,6 +50,7 @@
4950
"link:waha-node": "bash scripts/link-waha-node.sh",
5051
"unlink:waha-node": "bash scripts/unlink-waha-node.sh",
5152
"migration:create": "bun run scripts/create-migration.ts",
53+
"prepublishOnly": "bun run build",
5254
"prepare": "husky"
5355
},
5456
"devDependencies": {

0 commit comments

Comments
 (0)