Skip to content

Add more CLI option shortcuts #39

@caribou-code

Description

@caribou-code

I'm finding SWC CLI commands can get very long, which is awkward when they're defined in a package.json script such as:

"scripts": {
  "swc": "swc src -d dist --strip-leading-paths --delete-dir-on-start",
}

It would be great to have shortcuts for at least the 2 longer flags above. Could be an acronym to avoid using up options that might be useful elsewhere. e.g.

swc src -d dist -slp -ddon

I'm happy to put in a PR for this but wanted to check opinions first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions