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": "bun server.ts",
"serve": "bun --watch server.ts",
"start": "cross-env NODE_ENV=development npm run build && npm run serve",
"dev": "cross-env NODE_ENV=development concurrently 'npm run watch' 'npm run serve'",
"prepublishOnly": "npm run build"