title: How to hot module replacement local npm package that I'm developing in server side rendered react, node.js app, in cezerin for example
body: <p>I'm developing a local npm package called 'theme' in a server side rendered react, node.js app called cezerin(<a href="https://github.com/cezerin/cezerin/issues/560" rel="nofollow noreferrer">https://github.com/cezerin/cezerin/issues/560</a>).  </p>
  
  <p>Currently it's running with pm2 both api, storefront and it's watching file changes in local package theme. However, it doesn't restart the server automatically when I change the look by changing the code in the theme.</p>
  
  <pre><code>{
      "apps": [
          {
              "name": "api",
              "cwd": "./src/api/server",
              "args": [],
              "script": "index.js",
              "node_args":"cross-env NODE_ENV=development",
              "watch": ["./config/server.js", "./src/api/server/"],
              "instances": "1",
              "exec_mode": "fork",
              "watch_options": {
                  "persistent": true,
                  "ignoreInitial": false
              }
          },
          {
              "name": "store",
              "cwd": "./src/store/server",
              "args": [],
              "script": "index.js",
              "node_args":"cross-env NODE_ENV=development",
              "watch": [
                  "./config/server.js",
                  "./store/",
                  "./theme/",
                  "./theme/assets/index.html"
              ],
              "instances": "1",
              "exec_mode": "fork",
              "watch_options": {
                  "persistent": true,
                  "ignoreInitial": false
              }
          }
      ]
  }
  </code></pre>
  
  <p>How does everyone set up development mode when you want to see the change instantly as you change the code in local theme that you are developing? </p>