ropilot 0.1.39 → 0.1.40
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/lib/proxy.js +7 -4
- package/package.json +1 -1
package/lib/proxy.js
CHANGED
|
@@ -280,16 +280,19 @@ function tryStartRojoServe() {
|
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
// Start rojo serve in background, detached from this process
|
|
283
|
-
|
|
283
|
+
// Use shell: true so it can find rojo in PATH
|
|
284
|
+
const child = spawn('rojo serve', [], {
|
|
284
285
|
cwd: process.cwd(),
|
|
285
286
|
detached: true,
|
|
286
|
-
stdio: 'ignore'
|
|
287
|
+
stdio: 'ignore',
|
|
288
|
+
shell: true
|
|
287
289
|
});
|
|
288
290
|
|
|
289
291
|
// Unref so parent can exit independently
|
|
290
292
|
child.unref();
|
|
291
|
-
|
|
292
|
-
|
|
293
|
+
console.error('[Ropilot] Started rojo serve in background');
|
|
294
|
+
} catch (err) {
|
|
295
|
+
console.error('[Ropilot] Failed to start rojo serve:', err.message);
|
|
293
296
|
}
|
|
294
297
|
}
|
|
295
298
|
|