ccsini 0.1.56 → 0.1.57
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/index.js +16 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28022,7 +28022,7 @@ var {
|
|
|
28022
28022
|
} = import__.default;
|
|
28023
28023
|
|
|
28024
28024
|
// src/version.ts
|
|
28025
|
-
var VERSION = "0.1.
|
|
28025
|
+
var VERSION = "0.1.57";
|
|
28026
28026
|
|
|
28027
28027
|
// src/commands/init.ts
|
|
28028
28028
|
init_source();
|
|
@@ -29940,11 +29940,12 @@ function registerInitCommand(program2) {
|
|
|
29940
29940
|
let daemonStarted = false;
|
|
29941
29941
|
try {
|
|
29942
29942
|
const isWin = platform2() === "win32";
|
|
29943
|
-
const child = spawn2("
|
|
29944
|
-
detached: true,
|
|
29943
|
+
const child = isWin ? spawn2("cmd", ["/c", "start", "/B", "ccsini", "daemon", "_run"], {
|
|
29945
29944
|
stdio: "ignore",
|
|
29946
|
-
windowsHide: true
|
|
29947
|
-
|
|
29945
|
+
windowsHide: true
|
|
29946
|
+
}) : spawn2("ccsini", ["daemon", "_run"], {
|
|
29947
|
+
detached: true,
|
|
29948
|
+
stdio: "ignore"
|
|
29948
29949
|
});
|
|
29949
29950
|
child.unref();
|
|
29950
29951
|
daemonStarted = true;
|
|
@@ -31817,11 +31818,12 @@ async function ensureDaemon(configDir) {
|
|
|
31817
31818
|
} catch {}
|
|
31818
31819
|
try {
|
|
31819
31820
|
const isWin = platform4() === "win32";
|
|
31820
|
-
const child = spawn3("
|
|
31821
|
-
detached: true,
|
|
31821
|
+
const child = isWin ? spawn3("cmd", ["/c", "start", "/B", "ccsini", "daemon", "_run"], {
|
|
31822
31822
|
stdio: "ignore",
|
|
31823
|
-
windowsHide: true
|
|
31824
|
-
|
|
31823
|
+
windowsHide: true
|
|
31824
|
+
}) : spawn3("ccsini", ["daemon", "_run"], {
|
|
31825
|
+
detached: true,
|
|
31826
|
+
stdio: "ignore"
|
|
31825
31827
|
});
|
|
31826
31828
|
child.unref();
|
|
31827
31829
|
} catch {}
|
|
@@ -32636,11 +32638,12 @@ function registerDaemonCommands(program2) {
|
|
|
32636
32638
|
await rm2(getStatusPath(configDir)).catch(() => {});
|
|
32637
32639
|
}
|
|
32638
32640
|
const isWin = platform5() === "win32";
|
|
32639
|
-
const child = spawn4("
|
|
32640
|
-
detached: true,
|
|
32641
|
+
const child = isWin ? spawn4("cmd", ["/c", "start", "/B", "ccsini", "daemon", "_run"], {
|
|
32641
32642
|
stdio: "ignore",
|
|
32642
|
-
windowsHide: true
|
|
32643
|
-
|
|
32643
|
+
windowsHide: true
|
|
32644
|
+
}) : spawn4("ccsini", ["daemon", "_run"], {
|
|
32645
|
+
detached: true,
|
|
32646
|
+
stdio: "ignore"
|
|
32644
32647
|
});
|
|
32645
32648
|
child.unref();
|
|
32646
32649
|
await new Promise((r) => setTimeout(r, 1000));
|