chore: add prepublishOnly script

Amolith created

Automatically build before npm publish

Change summary

package.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Detailed changes

package.json 🔗

@@ -18,7 +18,8 @@
     "start": "bun dist/cli/index.js",
     "lint": "bun run --silent typecheck",
     "test": "bun test",
-    "typecheck": "tsc --noEmit"
+    "typecheck": "tsc --noEmit",
+    "prepublishOnly": "bun run build"
   },
   "dependencies": {
     "@mariozechner/pi-agent-core": "^0.52.8",