Skip to content

Commit

Permalink
only force stack frame color in tty
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Oct 25, 2024
1 parent 1344b75 commit 9d08167
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ export function getOriginalCodeFrame(
column: frame.column ?? 0,
},
},
// TODO: Only in TTY
{ forceColor: true }
{ forceColor: process.stdout.isTTY }
)
}

Expand Down

0 comments on commit 9d08167

Please sign in to comment.