@oneaddress/setup 1.1.6 → 1.1.7

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/index.js +13 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -835,7 +835,7 @@ var _R = ["\u2588\u2588\u2588\u2588\u2588\u2588 ", "\u2588\u2588 \u2588\u2588"
835
835
  var _S = [" \u2588\u2588\u2588\u2588\u2588\u2588", "\u2588\u2588 ", "\u2588\u2588 ", " \u2588\u2588\u2588\u2588\u2588 ", " \u2588\u2588", " \u2588\u2588", "\u2588\u2588\u2588\u2588\u2588\u2588 "];
836
836
  var ONE_ROWS = Array.from({ length: 7 }, (_2, i) => [_O[i], _N[i], _E[i]].join(" "));
837
837
  var ADDR_ROWS = Array.from({ length: 7 }, (_2, i) => [_A[i], _D2[i], _D2[i], _R[i], _E[i], _S[i], _S[i]].join(" "));
838
- var WIZARD_VERSION = true ? "1.1.6" : "?";
838
+ var WIZARD_VERSION = true ? "1.1.7" : "?";
839
839
  function printHeader() {
840
840
  const BAR_LEN = 85;
841
841
  const TOP_BAR = fn("\u250C") + dm("\u2500".repeat(BAR_LEN)) + fn("\u2510");
@@ -3169,13 +3169,18 @@ async function startServer(platform, outputDir, port = 3001) {
3169
3169
  }
3170
3170
  serverOutput = "";
3171
3171
  const manualCommand = `cd ${outputDir} && ${spec.cmd} ${spec.args.join(" ")}`;
3172
- serverProcess = (0, import_node_child_process2.spawn)(spec.cmd, spec.args, {
3173
- cwd: outputDir,
3174
- stdio: ["ignore", "pipe", "pipe"],
3175
- detached: false,
3176
- shell: process.platform === "win32",
3177
- env: { ...process.env }
3178
- });
3172
+ const isWin = process.platform === "win32";
3173
+ serverProcess = (0, import_node_child_process2.spawn)(
3174
+ isWin ? "cmd.exe" : spec.cmd,
3175
+ isWin ? ["/c", spec.cmd, ...spec.args] : spec.args,
3176
+ {
3177
+ cwd: outputDir,
3178
+ stdio: ["ignore", "pipe", "pipe"],
3179
+ detached: false,
3180
+ shell: false,
3181
+ env: { ...process.env }
3182
+ }
3183
+ );
3179
3184
  serverProcess.stdout?.on("data", (d2) => {
3180
3185
  serverOutput += d2.toString();
3181
3186
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneaddress/setup",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "Interactive setup wizard for OneAddress partner webhook integrations",
5
5
  "main": "dist/index.js",
6
6
  "bin": {