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

Integration with husky #37

Open
chimilord opened this issue Apr 7, 2020 · 3 comments
Open

Integration with husky #37

chimilord opened this issue Apr 7, 2020 · 3 comments

Comments

@chimilord
Copy link

I have the following configuration in my package.json:

{
  "husky": {
    "hooks": {
      "pre-commit": "npm run lint && npm run bump",
    }
  }
...

The bump-prompt is opened and asks me for the version but does not let me choose and returns to my console. Exists some way to integrate with husky hooks?

@JamesMessinger
Copy link
Member

This may be a limitation of Husky. Perhaps it doesn't support tools that prompt for user input. Or perhaps there's something you need to configure in Husky to make it work. Either way, I suggest opening an issue on the Husky repo.

@DiegoRBaquero
Copy link

Similarly, on the other way around, bumping with --commit, will run husky, but gets exited immediately, so only package.json is bumped, no commit, no push.

@gregoryduckworth
Copy link

This happens also when using a github pre-commit hook as well, where the prompt appears but exits before you have chance to action anything.

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

No branches or pull requests

4 participants