@qumra/cli 2.4.18 → 2.4.20
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/cli.js +10 -16
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -304366,7 +304366,7 @@ class SectionBuilder {
|
|
|
304366
304366
|
}
|
|
304367
304367
|
}
|
|
304368
304368
|
|
|
304369
|
-
var version$2 = "2.4.
|
|
304369
|
+
var version$2 = "2.4.20";
|
|
304370
304370
|
var pkg = {
|
|
304371
304371
|
version: version$2};
|
|
304372
304372
|
|
|
@@ -534485,7 +534485,7 @@ let AppDevServerService = class AppDevServerService {
|
|
|
534485
534485
|
cwd,
|
|
534486
534486
|
env: { ...process.env, ...env },
|
|
534487
534487
|
shell: true,
|
|
534488
|
-
|
|
534488
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
534489
534489
|
});
|
|
534490
534490
|
this.childProcess = child;
|
|
534491
534491
|
(_a = child.stdout) === null || _a === void 0 ? void 0 : _a.on('data', (data) => {
|
|
@@ -534536,7 +534536,7 @@ let AppDevServerService = class AppDevServerService {
|
|
|
534536
534536
|
cwd,
|
|
534537
534537
|
env: { ...process.env, ...env },
|
|
534538
534538
|
shell: true,
|
|
534539
|
-
|
|
534539
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
534540
534540
|
});
|
|
534541
534541
|
this.childProcess = child;
|
|
534542
534542
|
(_a = child.stdout) === null || _a === void 0 ? void 0 : _a.on('data', (data) => {
|
|
@@ -534576,19 +534576,13 @@ let AppDevServerService = class AppDevServerService {
|
|
|
534576
534576
|
});
|
|
534577
534577
|
}
|
|
534578
534578
|
stop() {
|
|
534579
|
-
if (this.childProcess && !this.childProcess.killed) {
|
|
534580
|
-
|
|
534581
|
-
|
|
534582
|
-
|
|
534583
|
-
process.kill(-this.childProcess.pid, 'SIGTERM');
|
|
534584
|
-
}
|
|
534585
|
-
catch {
|
|
534586
|
-
// Fallback if process group kill fails
|
|
534587
|
-
this.childProcess.kill('SIGTERM');
|
|
534588
|
-
}
|
|
534579
|
+
if (this.childProcess && !this.childProcess.killed && this.childProcess.pid) {
|
|
534580
|
+
try {
|
|
534581
|
+
// Kill the whole process tree spawned by shell: true
|
|
534582
|
+
process.kill(this.childProcess.pid, 'SIGTERM');
|
|
534589
534583
|
}
|
|
534590
|
-
|
|
534591
|
-
|
|
534584
|
+
catch {
|
|
534585
|
+
// Process already exited
|
|
534592
534586
|
}
|
|
534593
534587
|
this.childProcess = null;
|
|
534594
534588
|
}
|
|
@@ -534682,7 +534676,7 @@ let AppService = class AppService {
|
|
|
534682
534676
|
const port = await this.devServer.getAvailablePort();
|
|
534683
534677
|
// Create tunnel (before UI starts)
|
|
534684
534678
|
this.logger.componentLog('tunnel', 'Creating tunnel...');
|
|
534685
|
-
const localUrl = `http://
|
|
534679
|
+
const localUrl = `http://127.0.0.1:${port}`;
|
|
534686
534680
|
const developmentUrl = await this.tunnel.createTunnel(localUrl);
|
|
534687
534681
|
// Update dev data
|
|
534688
534682
|
await this.appApi.updateDevData(developmentUrl, qumraConfig.clientId);
|