-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: wrong hooks where installed by default #385
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This hasn't fixed it for me. If I use the d2-style on this branch, and then run d2-style install
, it still installs the hooks that can be found here: https://github.com/dhis2/cli-style/tree/alpha/.hooks
Maybe I'm doing it wrong? I see it accepts a |
No, that isn't necessary. |
How are you running this branch in another project? Are you using e.g. |
Ah, @ismay. I found it. 1fc1c04 We were resolving the d2style config in relation to the package (cli-style), and not the project (cwd). |
That seems to have done it, both hooks work for me locally after this fix and a clean install.
I was testing it by running |
🎉 This PR is included in version 8.0.0-alpha.10 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [8.0.0](v7.3.0...v8.0.0) (2021-05-05) ### Bug Fixes * allow eslint to print colors ([#384](#384)) ([c95a184](c95a184)) * ignore .d2 directory ([#386](#386)) ([6a473f2](6a473f2)) * match files from project root ([b77ef35](b77ef35)) * wrong hooks where installed by default ([#385](#385)) ([3ac82f4](3ac82f4)) ### Code Refactoring * remove husky ([752b944](752b944)) ### Features * commit check can read from a custom file ([366be0c](366be0c)) * delete deprecated configuration files ([c961647](c961647)) * lint file system for consistent names ([#379](#379)) ([2bfb5ef](2bfb5ef)) * new and improved d2-style ([#378](#378)) ([f8279e5](f8279e5)) * opt-in git hooks ([#333](#333)) ([a3bc415](a3bc415)) * show eslint warnings ([#368](#368)) ([abe4668](abe4668)) ### BREAKING CHANGES * The verb (check/apply) is now moved to the top-level. E.g. "d2-style js check" becomes "d2-style check js". This is to allow all checkers to run with a single command: "d2-style check" * "d2-style install" is no longer used to set up linters. As of husky@5 the tool is vastly simplified and much faster. Hooks can be installed manually with "d2-style install", but is also run as a "post-install" script that we control for consistency. Configuration is added to the project with the "d2-style add" command. * Husky has been removed from cli-style. You will need to remove hooks that reference husky.sh in .git/hooks.
🎉 This PR is included in version 8.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.