@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 "
|
|
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];
|
package/package.json
CHANGED
|
@@ -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 "
|
|
7
|
+
import getProcessIdFromPort from "../../../getProcessIdFromPort.js";
|
|
8
8
|
|
|
9
9
|
const getMongoProcessId = async (port = 2601) => {
|
|
10
10
|
const pids = await getProcessIdFromPort(port);
|