@joystick.js/cli-canary 0.0.0-canary.146 → 0.0.0-canary.147

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.
@@ -258,6 +258,7 @@ const handleRestartApplicationProcess = async (options = {}) => {
258
258
  process.loader.text("Restarting app...");
259
259
  }
260
260
  process.serverProcess.kill();
261
+ console.log("GETTING TO HERE");
261
262
  await handleStartAppServer(options);
262
263
  return Promise.resolve();
263
264
  }
@@ -297,6 +298,11 @@ const handleNotifyHMRClients = async (indexHTMLChanged = false) => {
297
298
  try {
298
299
  if (process.hmrProcess) {
299
300
  const settings = await loadSettings(process.env.NODE_ENV);
301
+ console.log({
302
+ type: "RESTART_SERVER",
303
+ settings: settings.parsed,
304
+ indexHTMLChanged
305
+ });
300
306
  process.hmrProcess.send(
301
307
  JSON.stringify({
302
308
  type: "RESTART_SERVER",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/cli-canary",
3
- "version": "0.0.0-canary.146",
3
+ "version": "0.0.0-canary.147",
4
4
  "type": "module",
5
5
  "description": "CLI for the Joystick JavaScript framework.",
6
6
  "main": "development.js",
@@ -119,7 +119,7 @@ const handleHMRProcessMessages = (options = {}) => {
119
119
 
120
120
  if (message?.type === "HMR_UPDATE_COMPLETED") {
121
121
  // NOTE: Do a setTimeout to ensure that server is still available while the HMR update completes.
122
- // Necessary because some updates are instance, but others might mount a UI that needs a server
122
+ // Necessary because some updates are instant, but others might mount a UI that needs a server
123
123
  // available (e.g., runs API requests).
124
124
  setTimeout(() => {
125
125
  handleRestartApplicationProcess({
@@ -315,6 +315,7 @@ const handleRestartApplicationProcess = async (options = {}) => {
315
315
 
316
316
  process.serverProcess.kill();
317
317
 
318
+ console.log('GETTING TO HERE');
318
319
  await handleStartAppServer(options);
319
320
 
320
321
  return Promise.resolve();
@@ -362,6 +363,11 @@ const handleNotifyHMRClients = async (indexHTMLChanged = false) => {
362
363
  try {
363
364
  if (process.hmrProcess) {
364
365
  const settings = await loadSettings(process.env.NODE_ENV);
366
+ console.log({
367
+ type: "RESTART_SERVER",
368
+ settings: settings.parsed,
369
+ indexHTMLChanged,
370
+ });
365
371
  process.hmrProcess.send(
366
372
  JSON.stringify({
367
373
  type: "RESTART_SERVER",