Skip to content

Ctrl C doesn't work, Microsoft recommend not using cmd in new software, yarn.cmd and yarnpkg.cmd should be ps1

Open

Description

Per microsoft/terminal#217 - originally created when I wanted to be able to Ctrl-C things like yarn and gulp without being confirmed - Microsoft strongly recommend against creating new .cmd files.

From various Microsoft staff (and echoed repeatedly in microsoft/terminal#217)

If you're writing Windows Command-Line scripts today, they should be PowerShell scripts wherever possible

Moving yarn.cmd and yarnpkg.cmd (which are tiny) to .ps1 would allow users to cancel them without having a silly confirmation prompot, and probably also avoid other unforeseen drama due to cmd being unmaintained.

Happy to send a PR, just wanted to discuss first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions