@oneaddress/setup 1.1.5 → 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.
- package/dist/index.js +33 -11
- 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.
|
|
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
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
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
|
});
|
|
@@ -3595,9 +3600,9 @@ async function main() {
|
|
|
3595
3600
|
if (serverRunning) {
|
|
3596
3601
|
console.log("");
|
|
3597
3602
|
console.log(` ${DIM2}\u250C${"\u2500".repeat(56)}\u2510${R4}`);
|
|
3598
|
-
console.log(` ${DIM2}\u2502${R4} ${GRN}\u25C8${R4} ${CRM2}Server live${R4} ${MID2}on http://localhost:3001/webhook${R4}
|
|
3599
|
-
console.log(` ${DIM2}\u2502${R4} ${AMB2}\u25C8${R4} ${MID2}Edit ${CRM2}src/store.ts${R4} ${MID2}to wire your database${R4}
|
|
3600
|
-
console.log(` ${DIM2}\u2502${R4} ${MID2}Press Ctrl+C to stop the server and exit.${R4}
|
|
3603
|
+
console.log(` ${DIM2}\u2502${R4} ${GRN}\u25C8${R4} ${CRM2}Server live${R4} ${MID2}on http://localhost:3001/webhook${R4}${" ".repeat(7)}${DIM2}\u2502${R4}`);
|
|
3604
|
+
console.log(` ${DIM2}\u2502${R4} ${AMB2}\u25C8${R4} ${MID2}Edit ${CRM2}src/store.ts${R4} ${MID2}to wire your database${R4}${" ".repeat(12)}${DIM2}\u2502${R4}`);
|
|
3605
|
+
console.log(` ${DIM2}\u2502${R4} ${MID2}Press Ctrl+C to stop the server and exit.${R4}${" ".repeat(10)}${DIM2}\u2502${R4}`);
|
|
3601
3606
|
console.log(` ${DIM2}\u2514${"\u2500".repeat(56)}\u2518${R4}`);
|
|
3602
3607
|
console.log("");
|
|
3603
3608
|
watchServer(
|
|
@@ -3609,7 +3614,24 @@ async function main() {
|
|
|
3609
3614
|
process.exit(0);
|
|
3610
3615
|
}
|
|
3611
3616
|
);
|
|
3617
|
+
if (process.stdin.isTTY) {
|
|
3618
|
+
process.stdin.setRawMode(true);
|
|
3619
|
+
}
|
|
3612
3620
|
process.stdin.resume();
|
|
3621
|
+
process.stdin.on("data", (chunk) => {
|
|
3622
|
+
if (chunk[0] === 3) {
|
|
3623
|
+
for (const fn2 of cleanupFns) {
|
|
3624
|
+
try {
|
|
3625
|
+
fn2();
|
|
3626
|
+
} catch {
|
|
3627
|
+
}
|
|
3628
|
+
}
|
|
3629
|
+
console.log(`
|
|
3630
|
+
${DIM2} Stopped.${R4}
|
|
3631
|
+
`);
|
|
3632
|
+
process.exit(0);
|
|
3633
|
+
}
|
|
3634
|
+
});
|
|
3613
3635
|
}
|
|
3614
3636
|
}
|
|
3615
3637
|
|