-
Notifications
You must be signed in to change notification settings - Fork 41
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
[Question] run npx simple-git-hooks every time you change a command #34
Comments
This shouldn't break things :) Gonna try it tomorrow, if this solution doesnt affect performance and works well, then gonna add it to the docs Thanks for the idea! |
Couldn't this be done internally, before each command is run? Check the hash and/or file modification time of the package.json or configuration file, and if it has changed, re-run setup? Another idea: Install a |
Definitely a fan of automatically keeping this synced as well! If a package updates a hooks' command, consumers' hooks should be updated without manual work of their own. Thanks for the library, toplenboren! |
Also, what about initial hooks install? For example, if I'll replace husky with simple-git-hooks in my project, I need to say all project members to run |
@Djaler Is that not handled by the |
Hmm, looks like yes. I just didn't see this in readme |
Can someone confirm that the |
@JaneJeon It hasn't been implemented, as far as I know. |
@glen-84 sorry, I didn’t mean if that feature was “built-in” to this library, but rather whether it was possible to get the husky-like functionality by just prepending a |
@JaneJeon Oh I see. I haven't tried it yet, TBH. 🙂 |
You may not need npx, you can also do |
I am using this:
|
Is this a good idea to do something like this?
so that people don't need to run
npx simple-git-hooks
command when the config changeThe text was updated successfully, but these errors were encountered: