-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Provide backwards config compatibility #133
Comments
No traction. Closing. |
Hi @JHabdas, First, sorry for the lack of answer. To be honest, I don't always have the time to reply to all (even though I would really like to!) but I try to address them at some point or the community does. For
That said, to make it easier for users, existing Regarding where to put them, I prefer them to be with other npm scripts and npm hooks (but that's a personal opinion). If Regarding another topic that was raised, |
Sorry if it wasn't clear, but my main concerns were actually easing the upgrade path and not clobbering scripts. That could also be achieved by simply changing
Agreed.
Nice touch.
Hope you're able to prioritize the migration over feature development assuming that's where most users could use you at present.
I'd rather be using the more feature-rich and well-supported product, personally. And that's why I tried "scripts": {
"pre-push": "npm run lint",
"lint": "standard"
} Which seems to have a design smell which could lead to:
Perhaps a At any rate, best of luck with the upgrade. Looking forward to learning from husky over time. |
When
ghooks
deprecated in favor of this project it left a lions share of manual work. While it may seem inconsequential to the owners and collaborators of this project, it would be less work forhusky
to provide backwards compatibility than the man-hours which will be spent updating configuration.For context, here are the current download statistics for the popular
ghooks
library:The above metrics signify just some of the many individuals which'll need to update their package manifests as the NPM deprecation notice drives upgrades to
husky
.Backwards compatibility has the added benefit of allowing users to keep their
scripts
free and clear of cruft dev dependencies might want to add because NPM does not support the likes of anextra
field in the package manifest.As an alternative, and something
standard
does, you may want to consider providing ahusky
object at the root of the package manifest to help eliminate the need for clobberingscripts
until NPM provides an appropriate solution for the problem current design attempts to achieve by eschewing use ofpackage.config
.And as an aside, it is my opinion reserving
scripts
as a sacred ground specifically for package author use is important, and that's something this library currently does not provide.It would be a pleasure to hear the community weigh in.
The text was updated successfully, but these errors were encountered: