diff --git a/packages/@ionic/utils-terminal/src/index.ts b/packages/@ionic/utils-terminal/src/index.ts index ddd425dcdc..e59a80bc1a 100644 --- a/packages/@ionic/utils-terminal/src/index.ts +++ b/packages/@ionic/utils-terminal/src/index.ts @@ -63,9 +63,8 @@ export const TERMINAL_INFO: TerminalInfo = Object.freeze({ ci: CI_ENVIRONMENT_VARIABLES_DETECTED.length > 0, shell: getShell(), tty: Boolean(process.stdin.isTTY && process.stdout.isTTY && process.stderr.isTTY), - windows: process.platform === 'win32' || ( + windows: process.platform === 'win32' || !!( process.env.OSTYPE && /^(msys|cygwin)$/.test(process.env.OSTYPE) || - process.env.MSYSTEM && /^MINGW(32|64)$/.test(process.env.MSYSTEM) || - process.env.TERM === 'cygwin' + process.env.MSYSTEM && /^MINGW(32|64)$/.test(process.env.MSYSTEM) ), });