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.
Files changed (2) hide show
  1. package/dist/bin.js +5 -3
  2. 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 executable = process.platform === "win32" && (command === "npm" || command === "pnpm") ? `${command}.cmd` : command;
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, args, { shell: false, windowsHide: true });
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.17";
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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mano-coding",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Mano Coding CLI and toolchain",
5
5
  "type": "module",
6
6
  "main": "index.js",