mirror of
https://github.com/stackblitz/bolt.new
synced 2025-06-26 18:17:50 +00:00
fix(npm): fix hanging shells (#153)
This commit is contained in:
parent
efcb93d6d8
commit
c192386805
@ -128,7 +128,9 @@ export class ActionRunner {
|
||||
|
||||
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', () => {
|
||||
process.kill();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user