@joystick.js/cli-canary 0.0.0-canary.13 → 0.0.0-canary.14

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.
@@ -4,7 +4,7 @@ import child_process from "child_process";
4
4
  import { kill as killPortProcess } from "cross-port-killer";
5
5
  import isWindows from "../../isWindows.js";
6
6
  import CLILog from "../../../../lib/CLILog.js";
7
- import getProcessIdFromPort from "../../getProcessIdFromPort.js";
7
+ import getProcessIdFromPort from "../../../getProcessIdFromPort.js";
8
8
  const getMongoProcessId = async (port = 2601) => {
9
9
  const pids = await getProcessIdFromPort(port);
10
10
  return pids.tcp && pids.tcp[0];
@@ -0,0 +1,5 @@
1
+ import os from "os";
2
+ var isWindows_default = os.platform() === "win32";
3
+ export {
4
+ isWindows_default as default
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/cli-canary",
3
- "version": "0.0.0-canary.13",
3
+ "version": "0.0.0-canary.14",
4
4
  "type": "module",
5
5
  "description": "CLI for the Joystick JavaScript framework.",
6
6
  "main": "development.js",
@@ -4,7 +4,7 @@ import child_process from "child_process";
4
4
  import { kill as killPortProcess } from 'cross-port-killer';
5
5
  import isWindows from "../../isWindows.js";
6
6
  import CLILog from "../../../../lib/CLILog.js";
7
- import getProcessIdFromPort from "../../getProcessIdFromPort.js";
7
+ import getProcessIdFromPort from "../../../getProcessIdFromPort.js";
8
8
 
9
9
  const getMongoProcessId = async (port = 2601) => {
10
10
  const pids = await getProcessIdFromPort(port);
@@ -0,0 +1,3 @@
1
+ import os from "os";
2
+
3
+ export default os.platform() === "win32";