Skip to content

Commit

Permalink
fix(npm): fix hanging shells (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
samdenty committed Oct 7, 2024
1 parent efcb93d commit c192386
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/lib/runtime/action-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c192386

Please sign in to comment.