Skip to content

Commit

Permalink
fix: extend stdio opts
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Apr 7, 2024
1 parent a1dac67 commit 546afc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/ts/spawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,14 @@ export type TChild = ReturnType<typeof cp.spawn>

export type TInput = string | Buffer | Stream

export type IO = 'pipe' | 'ignore' | 'inherit'

export interface TSpawnCtxNormalized {
id: string,
cwd: string
cmd: string
sync: boolean
args: ReadonlyArray<string>
input: TInput | null
stdio: [IO, IO, IO]
stdio: cp.StdioOptions
detached: boolean
env: Record<string, string | undefined>
ee: EventEmitter
Expand Down
1 change: 1 addition & 0 deletions src/test/ts/x.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ describe('$()', () => {

it('handles custom stdio', async () => {
await $({stdio: ['inherit', 'inherit', 'inherit']})`ls`
await $({stdio: 'ignore'})`ls`
})

it('supports presets', () => {
Expand Down

0 comments on commit 546afc6

Please sign in to comment.