@joystick.js/cli-canary 0.0.0-canary.165 → 0.0.0-canary.167

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.
@@ -3,6 +3,21 @@ import path from "path";
3
3
  const handleStartServerProcess = (execArgv = {}, sessionsBeforeHMRUpdate = {}) => {
4
4
  try {
5
5
  process.loader.text("Starting app...");
6
+ console.log({
7
+ execArgv,
8
+ // NOTE: Pipe stdin, stdout, and stderr. IPC establishes a message channel so we
9
+ // communicate with the child_process.
10
+ silent: true,
11
+ env: {
12
+ FORCE_COLOR: "1",
13
+ LOGS_PATH: process.env.LOGS_PATH,
14
+ NODE_ENV: process.env.NODE_ENV,
15
+ ROOT_URL: process.env.ROOT_URL,
16
+ PORT: process.env.PORT,
17
+ JOYSTICK_SETTINGS: process.env.JOYSTICK_SETTINGS,
18
+ HMR_SESSIONS: sessionsBeforeHMRUpdate
19
+ }
20
+ });
6
21
  return child_process.fork(
7
22
  path.resolve(".joystick/build/index.server.js"),
8
23
  [],
@@ -18,7 +33,7 @@ const handleStartServerProcess = (execArgv = {}, sessionsBeforeHMRUpdate = {}) =
18
33
  ROOT_URL: process.env.ROOT_URL,
19
34
  PORT: process.env.PORT,
20
35
  JOYSTICK_SETTINGS: process.env.JOYSTICK_SETTINGS,
21
- HMR_SESSIONS: JSON.stringify(sessionsBeforeHMRUpdate)
36
+ HMR_SESSIONS: sessionsBeforeHMRUpdate
22
37
  }
23
38
  }
24
39
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/cli-canary",
3
- "version": "0.0.0-canary.165",
3
+ "version": "0.0.0-canary.167",
4
4
  "type": "module",
5
5
  "description": "CLI for the Joystick JavaScript framework.",
6
6
  "main": "development.js",
@@ -5,6 +5,22 @@ const handleStartServerProcess = (execArgv = {}, sessionsBeforeHMRUpdate = {}) =
5
5
  try {
6
6
  process.loader.text('Starting app...');
7
7
 
8
+ console.log({
9
+ execArgv,
10
+ // NOTE: Pipe stdin, stdout, and stderr. IPC establishes a message channel so we
11
+ // communicate with the child_process.
12
+ silent: true,
13
+ env: {
14
+ FORCE_COLOR: "1",
15
+ LOGS_PATH: process.env.LOGS_PATH,
16
+ NODE_ENV: process.env.NODE_ENV,
17
+ ROOT_URL: process.env.ROOT_URL,
18
+ PORT: process.env.PORT,
19
+ JOYSTICK_SETTINGS: process.env.JOYSTICK_SETTINGS,
20
+ HMR_SESSIONS: sessionsBeforeHMRUpdate,
21
+ },
22
+ });
23
+
8
24
  return child_process.fork(
9
25
  path.resolve(".joystick/build/index.server.js"),
10
26
  [],
@@ -20,7 +36,7 @@ const handleStartServerProcess = (execArgv = {}, sessionsBeforeHMRUpdate = {}) =
20
36
  ROOT_URL: process.env.ROOT_URL,
21
37
  PORT: process.env.PORT,
22
38
  JOYSTICK_SETTINGS: process.env.JOYSTICK_SETTINGS,
23
- HMR_SESSIONS: JSON.stringify(sessionsBeforeHMRUpdate),
39
+ HMR_SESSIONS: sessionsBeforeHMRUpdate,
24
40
  },
25
41
  }
26
42
  );