@leynier/ccst 0.5.0 → 0.5.1
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/package.json +2 -2
- package/src/commands/ccs/start.ts +12 -6
package/package.json
CHANGED
|
@@ -47,12 +47,18 @@ export const ccsStartCommand = async (
|
|
|
47
47
|
// Open log file for writing (append mode)
|
|
48
48
|
const logFd = openSync(logPath, "a");
|
|
49
49
|
// Spawn detached process
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
// On Windows, use "start /B" to run without a visible console window
|
|
51
|
+
const child =
|
|
52
|
+
process.platform === "win32"
|
|
53
|
+
? spawn("cmd", ["/c", "start", "/B", ccsPath, "config"], {
|
|
54
|
+
detached: true,
|
|
55
|
+
stdio: ["ignore", logFd, logFd],
|
|
56
|
+
windowsHide: true,
|
|
57
|
+
})
|
|
58
|
+
: spawn(ccsPath, ["config"], {
|
|
59
|
+
detached: true,
|
|
60
|
+
stdio: ["ignore", logFd, logFd],
|
|
61
|
+
});
|
|
56
62
|
if (!child.pid) {
|
|
57
63
|
console.log(pc.red("Failed to start CCS config daemon"));
|
|
58
64
|
return;
|