@akanjs/cli 0.9.26 → 0.9.27
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/cjs/index.js +3 -14
- package/esm/index.js +3 -14
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -3765,19 +3765,6 @@ var Start = ({ appName, bcp, fcp, csr, onExit, maxLength = 100 }) => {
|
|
|
3765
3765
|
csr.on("clearScreen", (type) => {
|
|
3766
3766
|
saveLog("clearScreen", type, setCsrLogs);
|
|
3767
3767
|
});
|
|
3768
|
-
const destroy = async () => {
|
|
3769
|
-
bcp.kill();
|
|
3770
|
-
fcp.kill();
|
|
3771
|
-
bcp.stdin?.end();
|
|
3772
|
-
fcp.stdin?.end();
|
|
3773
|
-
csr.removeAllListeners();
|
|
3774
|
-
await onExit();
|
|
3775
|
-
exit();
|
|
3776
|
-
process.exit(0);
|
|
3777
|
-
};
|
|
3778
|
-
return () => {
|
|
3779
|
-
void destroy();
|
|
3780
|
-
};
|
|
3781
3768
|
}, []);
|
|
3782
3769
|
return /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, /* @__PURE__ */ import_react3.default.createElement(import_ink3.Box, { borderColor: "#ff493b", height, width, flexDirection: "row" }, /* @__PURE__ */ import_react3.default.createElement(
|
|
3783
3770
|
MultiScrollList,
|
|
@@ -4458,13 +4445,15 @@ var ApplicationScript = class {
|
|
|
4458
4445
|
const backend = await this.startBackend(app, { open: open2, withInk: true });
|
|
4459
4446
|
const frontend = await this.startFrontend(app, { open: open2, withInk: true });
|
|
4460
4447
|
const { server: csrServer, eventEmitter: csr } = await this.startCsr(app, { open: open2, withInk: true });
|
|
4461
|
-
|
|
4448
|
+
process.on("SIGINT", async () => {
|
|
4462
4449
|
await csrServer.close();
|
|
4463
4450
|
backend.kill();
|
|
4464
4451
|
frontend.kill();
|
|
4465
4452
|
csr.removeAllListeners();
|
|
4466
4453
|
process.exit(0);
|
|
4467
4454
|
});
|
|
4455
|
+
Interface.Start(app.name, backend, frontend, csr, () => {
|
|
4456
|
+
});
|
|
4468
4457
|
}
|
|
4469
4458
|
async buildBackend(app, { sync = true } = {}) {
|
|
4470
4459
|
if (sync)
|
package/esm/index.js
CHANGED
|
@@ -3747,19 +3747,6 @@ var Start = ({ appName, bcp, fcp, csr, onExit, maxLength = 100 }) => {
|
|
|
3747
3747
|
csr.on("clearScreen", (type) => {
|
|
3748
3748
|
saveLog("clearScreen", type, setCsrLogs);
|
|
3749
3749
|
});
|
|
3750
|
-
const destroy = async () => {
|
|
3751
|
-
bcp.kill();
|
|
3752
|
-
fcp.kill();
|
|
3753
|
-
bcp.stdin?.end();
|
|
3754
|
-
fcp.stdin?.end();
|
|
3755
|
-
csr.removeAllListeners();
|
|
3756
|
-
await onExit();
|
|
3757
|
-
exit();
|
|
3758
|
-
process.exit(0);
|
|
3759
|
-
};
|
|
3760
|
-
return () => {
|
|
3761
|
-
void destroy();
|
|
3762
|
-
};
|
|
3763
3750
|
}, []);
|
|
3764
3751
|
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(Box2, { borderColor: "#ff493b", height, width, flexDirection: "row" }, /* @__PURE__ */ React2.createElement(
|
|
3765
3752
|
MultiScrollList,
|
|
@@ -4440,13 +4427,15 @@ var ApplicationScript = class {
|
|
|
4440
4427
|
const backend = await this.startBackend(app, { open: open2, withInk: true });
|
|
4441
4428
|
const frontend = await this.startFrontend(app, { open: open2, withInk: true });
|
|
4442
4429
|
const { server: csrServer, eventEmitter: csr } = await this.startCsr(app, { open: open2, withInk: true });
|
|
4443
|
-
|
|
4430
|
+
process.on("SIGINT", async () => {
|
|
4444
4431
|
await csrServer.close();
|
|
4445
4432
|
backend.kill();
|
|
4446
4433
|
frontend.kill();
|
|
4447
4434
|
csr.removeAllListeners();
|
|
4448
4435
|
process.exit(0);
|
|
4449
4436
|
});
|
|
4437
|
+
Interface.Start(app.name, backend, frontend, csr, () => {
|
|
4438
|
+
});
|
|
4450
4439
|
}
|
|
4451
4440
|
async buildBackend(app, { sync = true } = {}) {
|
|
4452
4441
|
if (sync)
|