Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more CLI option shortcuts #39

Open
caribou-code opened this issue May 24, 2024 · 0 comments
Open

Add more CLI option shortcuts #39

caribou-code opened this issue May 24, 2024 · 0 comments

Comments

@caribou-code
Copy link

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.

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

No branches or pull requests

1 participant