@joystick.js/cli-canary 0.0.0-canary.61 → 0.0.0-canary.62
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
CHANGED
|
@@ -426,12 +426,12 @@ const dev = async (options, { resolve, reject }) => {
|
|
|
426
426
|
handleServerProcessSTDIO();
|
|
427
427
|
handleServerProcessMessages();
|
|
428
428
|
}
|
|
429
|
-
console.log(process.serverProcess);
|
|
430
429
|
let hmrProcess;
|
|
431
430
|
if (options?.environment !== "test") {
|
|
432
|
-
hmrProcess = await startHMR(
|
|
431
|
+
hmrProcess = await startHMR({
|
|
432
|
+
nodeMajorVersion
|
|
433
|
+
});
|
|
433
434
|
}
|
|
434
|
-
console.log(process.hmrProcess);
|
|
435
435
|
handleSignalEvents(
|
|
436
436
|
[serverProcess.pid, hmrProcess.pid],
|
|
437
437
|
nodeMajorVersion,
|
package/dist/lib/dev/startHMR.js
CHANGED
|
@@ -33,8 +33,6 @@ const validateOptions = (options) => {
|
|
|
33
33
|
throw new Error("options object is required.");
|
|
34
34
|
if (!options.nodeMajorVersion)
|
|
35
35
|
throw new Error("options.nodeMajorVersion is required.");
|
|
36
|
-
if (!options.port)
|
|
37
|
-
throw new Error("options.port is required.");
|
|
38
36
|
} catch (exception) {
|
|
39
37
|
throw new Error(`[startHMR.validateOptions] ${exception.message}`);
|
|
40
38
|
}
|
package/package.json
CHANGED
package/src/lib/dev/index.js
CHANGED
|
@@ -510,17 +510,15 @@ const dev = async (options, { resolve, reject }) => {
|
|
|
510
510
|
handleServerProcessMessages();
|
|
511
511
|
}
|
|
512
512
|
|
|
513
|
-
console.log(process.serverProcess);
|
|
514
|
-
|
|
515
513
|
// NOTE: Scope this out here so we can reference the processId below.
|
|
516
514
|
let hmrProcess;
|
|
517
515
|
|
|
518
516
|
if (options?.environment !== 'test') {
|
|
519
|
-
hmrProcess = await startHMR(
|
|
517
|
+
hmrProcess = await startHMR({
|
|
518
|
+
nodeMajorVersion,
|
|
519
|
+
});
|
|
520
520
|
}
|
|
521
521
|
|
|
522
|
-
console.log(process.hmrProcess);
|
|
523
|
-
|
|
524
522
|
handleSignalEvents(
|
|
525
523
|
[serverProcess.pid, hmrProcess.pid],
|
|
526
524
|
nodeMajorVersion,
|
package/src/lib/dev/startHMR.js
CHANGED
|
@@ -38,7 +38,6 @@ const validateOptions = (options) => {
|
|
|
38
38
|
try {
|
|
39
39
|
if (!options) throw new Error('options object is required.');
|
|
40
40
|
if (!options.nodeMajorVersion) throw new Error('options.nodeMajorVersion is required.');
|
|
41
|
-
if (!options.port) throw new Error('options.port is required.');
|
|
42
41
|
} catch (exception) {
|
|
43
42
|
throw new Error(`[startHMR.validateOptions] ${exception.message}`);
|
|
44
43
|
}
|