@chvor/cli 0.1.3 → 0.1.5
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/lib/process.js +2 -0
- package/package.json +1 -1
package/dist/lib/process.js
CHANGED
|
@@ -99,6 +99,7 @@ export async function spawnServer(opts = {}) {
|
|
|
99
99
|
console.log(`Starting Chvor on port ${port} (foreground)...`);
|
|
100
100
|
const child = spawn("node", ["--import", "tsx", serverEntry], {
|
|
101
101
|
env,
|
|
102
|
+
cwd: getAppDir(),
|
|
102
103
|
stdio: "inherit",
|
|
103
104
|
});
|
|
104
105
|
if (child.pid === undefined) {
|
|
@@ -151,6 +152,7 @@ export async function spawnServer(opts = {}) {
|
|
|
151
152
|
const logFd = openSync(logPath, "a");
|
|
152
153
|
const child = spawn("node", ["--import", "tsx", serverEntry], {
|
|
153
154
|
env,
|
|
155
|
+
cwd: getAppDir(),
|
|
154
156
|
stdio: ["ignore", logFd, logFd],
|
|
155
157
|
detached: true,
|
|
156
158
|
});
|