mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-05 12:35:53 +00:00
fix(npm): fix hanging shells (#159)
This commit is contained in:
parent
d0828e4c86
commit
31c07c06cb
@ -128,7 +128,9 @@ export class ActionRunner {
|
|||||||
|
|
||||||
const webcontainer = await this.#webcontainer;
|
const webcontainer = await this.#webcontainer;
|
||||||
|
|
||||||
const process = await webcontainer.spawn('jsh', ['-c', action.content]);
|
const process = await webcontainer.spawn('jsh', ['-c', action.content], {
|
||||||
|
env: { npm_config_yes: true },
|
||||||
|
});
|
||||||
|
|
||||||
action.abortSignal.addEventListener('abort', () => {
|
action.abortSignal.addEventListener('abort', () => {
|
||||||
process.kill();
|
process.kill();
|
||||||
|
@ -11,7 +11,6 @@ export async function newShellProcess(webcontainer: WebContainer, terminal: ITer
|
|||||||
cols: terminal.cols ?? 80,
|
cols: terminal.cols ?? 80,
|
||||||
rows: terminal.rows ?? 15,
|
rows: terminal.rows ?? 15,
|
||||||
},
|
},
|
||||||
env: { npm_config_yes: true },
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const input = process.input.getWriter();
|
const input = process.input.getWriter();
|
||||||
|
Loading…
Reference in New Issue
Block a user