Skip to content

Conversation

@jrolfs
Copy link
Collaborator

@jrolfs jrolfs commented Jul 10, 2020

Fix

Put band-aid in place for bug that cropped up when invoking hover-scripts commit from yarn commit

Additional

Also use require.resolve to resolve 'commitizen' path for use in bootstraping prompt adapter to make resolution more resilient and remove the dependency on node_modules directory.

@jrolfs jrolfs self-assigned this Jul 10, 2020
@jrolfs jrolfs requested a review from aarosil July 10, 2020 20:39
Copy link

@aarosil aarosil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👑

@jrolfs jrolfs requested a review from aarosil July 10, 2020 21:29
jrolfs added 3 commits July 10, 2020 14:52
For some reason invoking this script with `yarn commit` now passes through `'commit'` in the arguments that get parsed as "raw git arguments" in the adapter which blows up said parsing behavior. I'm not sure if this was related to a yarn change (`yarn [script] args` vs. `yarn [script] -- args`) or something else...

Either way, this is a band-aid to filter out the rogue argument for now.
Use `require.resolve` to resolve 'commitizen' path for use in `bootstrap`ing prompt adapter to make resolution more resilient and remove the dependency on `node_modules` directory.
@jrolfs
Copy link
Collaborator Author

jrolfs commented Jul 10, 2020

✅ tests via yarn link in web-react

@jrolfs jrolfs merged commit 7a14209 into master Jul 10, 2020
@jrolfs jrolfs deleted the fix/commit branch July 10, 2020 22:02
@jrolfs
Copy link
Collaborator Author

jrolfs commented Jul 10, 2020

🎉 This PR is included in version 4.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants