@ctxo/cli 0.11.0 → 0.11.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.
|
@@ -564,18 +564,12 @@ function buildInstallCommand(manager, packages, options = {}) {
|
|
|
564
564
|
// src/core/install/run-package-manager.ts
|
|
565
565
|
import { spawn } from "child_process";
|
|
566
566
|
function runPackageManager(command, args, cwd) {
|
|
567
|
-
const resolved = resolveBinary(command);
|
|
568
567
|
return new Promise((resolve4, reject) => {
|
|
569
|
-
const child = spawn(
|
|
568
|
+
const child = process.platform === "win32" ? spawn([command, ...args].join(" "), { cwd, stdio: "inherit", shell: true }) : spawn(command, [...args], { cwd, stdio: "inherit", shell: false });
|
|
570
569
|
child.on("exit", (code) => resolve4(code ?? 0));
|
|
571
570
|
child.on("error", (err) => reject(err));
|
|
572
571
|
});
|
|
573
572
|
}
|
|
574
|
-
function resolveBinary(command) {
|
|
575
|
-
if (process.platform !== "win32") return command;
|
|
576
|
-
if (command === "bun") return "bun.exe";
|
|
577
|
-
return `${command}.cmd`;
|
|
578
|
-
}
|
|
579
573
|
|
|
580
574
|
// src/core/detection/detect-java-runtime.ts
|
|
581
575
|
import { spawnSync } from "child_process";
|
|
@@ -3920,7 +3914,7 @@ var DoctorCommand = class {
|
|
|
3920
3914
|
this.ctxoRoot = join24(projectRoot, ".ctxo");
|
|
3921
3915
|
}
|
|
3922
3916
|
async run(options = {}) {
|
|
3923
|
-
const { getVersion: getVersion2 } = await import("./cli-router-
|
|
3917
|
+
const { getVersion: getVersion2 } = await import("./cli-router-2JVPBW4S.js");
|
|
3924
3918
|
console.error(`ctxo v${getVersion2()} \u2014 health check
|
|
3925
3919
|
`);
|
|
3926
3920
|
const checks = [
|
|
@@ -5152,4 +5146,4 @@ export {
|
|
|
5152
5146
|
getVersion,
|
|
5153
5147
|
locateGitRoot
|
|
5154
5148
|
};
|
|
5155
|
-
//# sourceMappingURL=cli-router-
|
|
5149
|
+
//# sourceMappingURL=cli-router-2JVPBW4S.js.map
|