typicode / husky

Git hooks made easy 🐶 woof!
https://typicode.github.io/husky
MIT License
32.7k stars 1.04k forks source link

Add husky label to warning for deprecated commands #1537

Closed smackfu closed 1 week ago

smackfu commented 2 weeks ago

Troubleshoot

Context There are some situations where npm commands are run but the commands themselves are shown. In these cases, it may not be clear that the deprecation warning is coming from husky.

Here's an actual example:

$ npx npm-check-updates --interactive --format group
...
 husky                                     ^8.0.3  →   ^9.1.6

✔ Run npm install to install new versions? … yes
Installing dependencies...
install command is DEPRECATED

Suggestion is to change the message to husky install command is DEPRECATED or something similar.

typicode commented 1 week ago

Good point, do you want to make a PR?

smackfu commented 1 week ago

Good point, do you want to make a PR?

Done! Looks like all the other DEPRECATED warnings already had the prefix so this was just making it consistent.