@joystick.js/cli-canary 0.0.0-canary.141 → 0.0.0-canary.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/dev/index.js +2 -0
- package/package.json +1 -1
- package/src/lib/dev/index.js +5 -0
package/dist/lib/dev/index.js
CHANGED
|
@@ -262,6 +262,8 @@ const handleRestartApplicationProcess = async (options = {}) => {
|
|
|
262
262
|
port: options?.port,
|
|
263
263
|
sessionsBeforeHMRUpdate: options?.sessionsBeforeHMRUpdate
|
|
264
264
|
});
|
|
265
|
+
handleServerProcessSTDIO();
|
|
266
|
+
handleServerProcessMessages();
|
|
265
267
|
return Promise.resolve();
|
|
266
268
|
}
|
|
267
269
|
process.loader.text("Starting app...");
|
package/package.json
CHANGED
package/src/lib/dev/index.js
CHANGED
|
@@ -319,6 +319,11 @@ const handleRestartApplicationProcess = async (options = {}) => {
|
|
|
319
319
|
sessionsBeforeHMRUpdate: options?.sessionsBeforeHMRUpdate,
|
|
320
320
|
});
|
|
321
321
|
|
|
322
|
+
// NOTE: Reattach process event handlers here because the ones down below
|
|
323
|
+
// are stale after a restart.
|
|
324
|
+
handleServerProcessSTDIO();
|
|
325
|
+
handleServerProcessMessages();
|
|
326
|
+
|
|
322
327
|
return Promise.resolve();
|
|
323
328
|
}
|
|
324
329
|
|