Skip to content

Running CLI when no TTY #666

@probins

Description

@probins

I'm trying to convert my existing babel with preset commands on GitLab Pages CI to the new minify, but am running into problems because there's no TTY on the Docker runner the CI uses. I find a related issue which states that 'There is no tty with Gitlab CI'. This means that process.stdin.isTTY is always false (see simple test), and cli.js runs runStdin() which fails because there are file params.

I can for the moment continue to use babel/preset, but I think it would be better if minify could handle this situation, perhaps by adding an option to bypass the TTY check if running in this sort of environment?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions