diff --git a/src/main/ts/mixin/pipe.ts b/src/main/ts/mixin/pipe.ts index 7683a5a..39df297 100644 --- a/src/main/ts/mixin/pipe.ts +++ b/src/main/ts/mixin/pipe.ts @@ -1,5 +1,4 @@ import { Writable } from 'node:stream' -import EventEmitter from 'node:events' import { assign, isStringLiteral } from '../util.js' import { VoidStream } from '../spawn.js' import type { TShell, TMixin, TShellCtx } from '../x.js' diff --git a/src/main/ts/spawn.ts b/src/main/ts/spawn.ts index 6497d19..9792de8 100644 --- a/src/main/ts/spawn.ts +++ b/src/main/ts/spawn.ts @@ -236,7 +236,7 @@ export const invoke = (c: TSpawnCtxNormalized): TSpawnCtxNormalized => { get stdout() { return c.store.stdout.join('') }, get stderr() { return c.store.stderr.join('') }, get stdall() { return c.store.stdall.join('') }, - stdio: [c.stdin, c.stdout, c.stderr], + stdio, duration: Date.now() - now, ctx: c } @@ -249,7 +249,7 @@ export const invoke = (c: TSpawnCtxNormalized): TSpawnCtxNormalized => { } catch (error: unknown) { c.callback( error, - c.fulfilled ={ + c.fulfilled = { error, status: null, signal: null,