fix(core): avoid imports from tty
This commit is contained in:
parent
2c6162987d
commit
54c904d3fa
1 changed files with 1 additions and 3 deletions
|
@ -1,6 +1,4 @@
|
||||||
import { isatty } from 'tty'
|
const isTty = typeof process === 'object' && Boolean(process.stdout?.isTTY)
|
||||||
|
|
||||||
const isTty = isatty(process.stdout.fd)
|
|
||||||
|
|
||||||
const BASE_FORMAT = isTty ? '%s [%s] [%s%s\x1b[0m] ' : '%s [%s] [%s] '
|
const BASE_FORMAT = isTty ? '%s [%s] [%s%s\x1b[0m] ' : '%s [%s] [%s] '
|
||||||
const LEVEL_NAMES = isTty ?
|
const LEVEL_NAMES = isTty ?
|
||||||
|
|
Loading…
Reference in a new issue