plantain-00 / type-coverage

A CLI tool to check type coverage for typescript code
MIT License
1.2k stars 43 forks source link

Only update if type coverage is higher #107

Closed tqn-treezor closed 2 years ago

tqn-treezor commented 2 years ago

Hi there, I noticed that in any case, using the type-coverage command with --update or with update: true would update the type-coverage atLeast prop.

Since I'm using this package with husky, I'd like to avoid updating it everytime, and I'd like to only update it when the command succeeds. The only solution I found right now is to run it twice: once with update, the second time without.

Is there a way to only update the type coverage when it is higher than the previous floor set?

plantain-00 commented 2 years ago

v2.20.0 supports --update-if-higher now.

tqn-treezor commented 2 years ago

Daaaaamn, that was insanely quick, thanks a lot!