Skip to content

Commit

Permalink
fix(cli-utils): Disable TTY/piping detection on GitHub CI (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed May 3, 2024
1 parent 465bf2a commit 7276c00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/pink-roses-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@gql.tada/cli-utils": patch
---

Disable output piping on GitHub CI, as it can't reliably be detected.
1 change: 0 additions & 1 deletion packages/cli-utils/src/term/tty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export function initTTY(params: TTYParams = {}): TTY {
let output: WriteStream = process.stdout;
if (isGithubCI) {
output = process.stderr;
if (!output.isTTY) pipeTo = process.stdout;
} else if (!output.isTTY && process.stderr.isTTY) {
output = process.stderr;
pipeTo = process.stdout;
Expand Down

0 comments on commit 7276c00

Please sign in to comment.