When I was trying to try the HMR for our node app, it actually tried to rerun everything from the root app.ts. However, the app had been listening on a port, and that caused a relistening on a used port, which caused process shutdown.
One thing worth mentioning is I enabled strictPort, as the client talks to a specific port.