feat(examples): add --watch to bun serve commands for auto-restart, and have npm start hit dev mode of all examples (#246)

* feat(examples): add --watch to bun serve commands for auto-restart on file changes

* Update package.json

* regen
This commit is contained in:
Olivier Chafik 2026-01-12 22:17:12 +00:00 • committed by GitHub
commit 9a9ecf27d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,7 +18,7 @@
"scripts": {
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build",
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
"serve:http": "bun server.ts",
"serve:http": "bun --watch server.ts",
"serve:stdio": "bun server.ts --stdio",
"start": "npm run start:http",
"start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http",