You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
I wanted to ask if you don't have this kind of problem. See, when I execute yarn commit the precommit is executed before and after starting the lint and test process (twice). It's a weird behavior. Here's a portion of my package.json in case you can help me with this.
So the problem is that npm scripts have this feature which allows you to prefix script names with pre or post and those things will run before or after the script name. So you have both a commit and a precommit. What this means is that precommit will be run before commit is run. Then husky will run your precommit script as that's the name of a commit hook.
So you can do one of a few things to solve/workaround this:
Thank you @kentcdodds! I tried the fourth option and worked nicely 😌. About the third option, if you don't use commitizen, what solution do you recommend? I'm excited to know ✨
Hello @kentcdodds, hope you are well.
I wanted to ask if you don't have this kind of problem. See, when I execute
yarn commit
the precommit is executed before and after starting the lint and test process (twice). It's a weird behavior. Here's a portion of my package.json in case you can help me with this.Thank you.
The text was updated successfully, but these errors were encountered: