Skip to content

Commit

Permalink
Make sure tty exists too
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgebucaran committed Sep 21, 2021
1 parent ad244fb commit 3265bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const isForced = "FORCE_COLOR" in env
const isWindows = platform === "win32"

const isCompatibleTerminal =
tty.isatty && tty.isatty(1) && env.TERM && env.TERM !== "dumb"
tty && tty.isatty && tty.isatty(1) && env.TERM && env.TERM !== "dumb"

const isCI =
"CI" in env &&
Expand Down

0 comments on commit 3265bfb

Please sign in to comment.