standard / ts-standard

Typescript style guide, linter, and formatter using StandardJS
https://www.npmjs.com/package/ts-standard
MIT License
473 stars 36 forks source link

Process `--version` Flag Directly #264

Closed lindluni closed 2 years ago

lindluni commented 2 years ago

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update [x] Bug fix [ ] New feature [ ] Other, please explain:

What changes did you make? (Give an overview)

Directly process the --version flag as per: #263

Which issue (if any) does this pull request address?

263

Is there anything you'd like reviewers to focus on?

Processing the version flag directly in the cli.js module much like the eslint project does: https://github.com/eslint/eslint/blob/main/lib/cli.js#L333

welcome[bot] commented 2 years ago

🙌 Thanks for opening this pull request! You're awesome.

lindluni commented 2 years ago

Hi @Divlo

I've added the test, thanks for pointing this out! Appreciate the help!

welcome[bot] commented 2 years ago

🎉 Congrats on getting your first pull request landed!

lindluni commented 2 years ago

@Divlo

Any chance we can get a 12.0.1 tag and publish it to npm to pick up this fix?

Thank you for your help with this!

theoludwig commented 2 years ago

@lindluni

PR for the release available there: #265.