fix(npm): fix hanging shells (#159)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user