mano-coding 0.1.17 → 0.1.18
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/bin.js +5 -3
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -41781,9 +41781,11 @@ async function fetchCliMetadata(registry, request = fetch) {
|
|
|
41781
41781
|
}
|
|
41782
41782
|
}
|
|
41783
41783
|
async function runCommand(command, args) {
|
|
41784
|
-
const
|
|
41784
|
+
const useCmd = process.platform === "win32" && (command === "pnpm" || command === "npm");
|
|
41785
|
+
const executable = useCmd ? process.env.ComSpec ?? "cmd.exe" : command;
|
|
41786
|
+
const commandArgs = useCmd ? ["/d", "/c", [command, ...args.map((value) => /[\s&|<>()^%!]/u.test(value) ? `"${value.replaceAll('"', '""')}"` : value)].join(" ")] : args;
|
|
41785
41787
|
return new Promise((resolveResult, reject) => {
|
|
41786
|
-
const child = spawn3(executable,
|
|
41788
|
+
const child = spawn3(executable, commandArgs, { shell: false, windowsHide: true });
|
|
41787
41789
|
let stdout = "";
|
|
41788
41790
|
let stderrOutput = "";
|
|
41789
41791
|
child.stdout.on("data", (chunk) => {
|
|
@@ -41855,7 +41857,7 @@ import { createRequire as createRequire2 } from "node:module";
|
|
|
41855
41857
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
41856
41858
|
import { fileURLToPath as fileURLToPath5 } from "node:url";
|
|
41857
41859
|
function resolveVersion() {
|
|
41858
|
-
if (true) return "0.1.
|
|
41860
|
+
if (true) return "0.1.18";
|
|
41859
41861
|
const candidates = [
|
|
41860
41862
|
new URL("../package.json", import.meta.url),
|
|
41861
41863
|
new URL("../../package.json", import.meta.url),
|