nodemon now watches both server.js and client/src/. On any change, it rebuilds the React app and restarts Express — so git push makes both backend AND frontend changes visible on the hot domain. - dev script simplified to "nodemon" (reads nodemon.json config) - dev:local added for human developers who want Vite HMR
6 lines
123 B
JSON
6 lines
123 B
JSON
{
|
|
"watch": ["server.js", "client/src"],
|
|
"ext": "js,ts,tsx,jsx,css,json",
|
|
"exec": "npm run build && node server.js"
|
|
}
|