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

Only update if type coverage is higher #107

Closed
tqn-treezor opened this issue Jan 24, 2022 · 2 comments
Closed

Only update if type coverage is higher #107

tqn-treezor opened this issue Jan 24, 2022 · 2 comments

Comments

@tqn-treezor
Copy link

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
Copy link
Owner

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

@tqn-treezor
Copy link
Author

Daaaaamn, that was insanely quick, thanks a lot!

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

No branches or pull requests

2 participants