diff --git a/packages/core/src/utils/platform/logging.ts b/packages/core/src/utils/platform/logging.ts index 62451f94..5f75c41d 100644 --- a/packages/core/src/utils/platform/logging.ts +++ b/packages/core/src/utils/platform/logging.ts @@ -1,6 +1,4 @@ -import { isatty } from 'tty' - -const isTty = isatty(process.stdout.fd) +const isTty = typeof process === 'object' && Boolean(process.stdout?.isTTY) const BASE_FORMAT = isTty ? '%s [%s] [%s%s\x1b[0m] ' : '%s [%s] [%s] ' const LEVEL_NAMES = isTty ?