lunel-cli 0.1.9 → 0.1.10
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 +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import * as os from "os";
|
|
|
9
9
|
import { spawn, execSync } from "child_process";
|
|
10
10
|
import { createServer } from "net";
|
|
11
11
|
const PROXY_URL = process.env.LUNEL_PROXY_URL || "https://gateway.lunel.dev";
|
|
12
|
-
const VERSION = "0.1.
|
|
12
|
+
const VERSION = "0.1.9";
|
|
13
13
|
// Root directory - sandbox all file operations to this
|
|
14
14
|
const ROOT_DIR = process.cwd();
|
|
15
15
|
// Simple ANSI parser for terminal state
|
|
@@ -720,8 +720,9 @@ function handleTerminalSpawn(payload) {
|
|
|
720
720
|
});
|
|
721
721
|
}
|
|
722
722
|
else {
|
|
723
|
-
// Unix: spawn shell
|
|
724
|
-
|
|
723
|
+
// Unix: spawn shell, let it run commands via stdin
|
|
724
|
+
// Don't use -i as it tries to control the parent terminal
|
|
725
|
+
proc = spawn(shell, [], {
|
|
725
726
|
cwd: ROOT_DIR,
|
|
726
727
|
env: cleanEnv,
|
|
727
728
|
stdio: ['pipe', 'pipe', 'pipe'],
|