What’s the best way for automatic reload of TypeScript server runtime (with Rollup)?
Currently I use this in my package.json
:
"scripts": {
"build": "rollup -c",
"type-check": "tsc --noEmit",
"watch": "nodemon --watch src --ext ts --exec \"npm run build && docker compose up --build nakama\"",
"dev": "npm run watch"
},
Is there any better method or improvements to how I’m doing it? I’m assuming there’s no hot-reloading or anything like that to avoid rebuilding the entire Nakama docker image.