Skip to content

Commit

Permalink
fix: don't override noTTYOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jun 12, 2023
1 parent 3f3c95d commit 809b9c0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cli-ux/styled/progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@
import {Options, SingleBar} from 'cli-progress'

export default function progress(options: Options = {}): SingleBar {
// set noTTYOutput for options
options.noTTYOutput = Boolean(process.env.TERM === 'dumb' || !process.stdin.isTTY)

return new SingleBar(options)
return new SingleBar({noTTYOutput: Boolean(process.env.TERM === 'dumb' || !process.stdin.isTTY), ...options})
}

0 comments on commit 809b9c0

Please sign in to comment.