Skip to content

Commit

Permalink
feat: pipe stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas committed Feb 4, 2022
1 parent 0eed080 commit b75374c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { getPathInHome } from './home_path.js'
import { getBinaryExtension } from './platform.js'

const DENO_VERSION_FILE = 'version.txt'
const DENO_VERSION_RANGE = '^1.17.2'
const DENO_VERSION_RANGE = '^1.18.2'

type LifecycleHook = () => void | Promise<void>

Expand Down Expand Up @@ -136,7 +136,8 @@ class DenoBridge {
const binaryPath = await this.getBinaryPath()
const runDeno = execa(binaryPath, args)

runDeno.stderr?.pipe(process.stdout)
runDeno.stdout?.pipe(process.stdout)
runDeno.stderr?.pipe(process.stderr)

if (!wait) {
return runDeno
Expand All @@ -146,4 +147,5 @@ class DenoBridge {
}
}

export { DenoBridge, LifecycleHook }
export { DenoBridge }
export type { LifecycleHook }

0 comments on commit b75374c

Please sign in to comment.