Hi @pedronauck 👋!
Describe the bug
Before upgrading from docz 0.11 to 0.13, stdout in build logs was pretty concise:

And now they are nearly endless, because a new line is appended to stdout every fraction of a second

To Reproduce
Build docz in a non-tty environment (e.g. in CI)
Expected behavior
I'd expect no animation when printing out ⠏ Creating production build, which only works in TTY
Environment
Hint
if (process.stdout.isTTY) {
// animated output (erasing and restoring the current line's output is supported)
} else {
// plain console output (can't erase what's already been printed)
}
Looks like relying on process.stdout.isTTY is not enough – it's true in some CIs, which is misleading. There'll be a need for a custom isTTY() function similar to one here: https://github.com/prettier/prettier/pull/5804
Hi most CI has process.env.CI = true what about using this env variable for disabling progress print?
I'd recommend copy-pasting Prettier's isTTY() function. Neither process.env.CI nor process.stdout.isTTY provide a sufficient check for all real-life scenarios.
Most helpful comment
Hi most CI has
process.env.CI=truewhat about using this env variable for disabling progress print?