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

fix: pre commit hooks broken #133

Merged
merged 3 commits into from
Aug 29, 2023
Merged

fix: pre commit hooks broken #133

merged 3 commits into from
Aug 29, 2023

Conversation

gismya
Copy link
Contributor

@gismya gismya commented Aug 29, 2023

Changes

Previous changes to the project accidentally removed the husky pre-commit hooks. This PR restores them.

Test

Try committing something that would be stopped by eslint or fixed by prettier and make sure the appropriate action is taken.

@gismya gismya requested a review from a team as a code owner August 29, 2023 08:49
package.json Outdated
@@ -6,7 +6,8 @@
"test": "vitest --run test && yarn lint",
"build": "vite build",
"prepack": "yarn build",
"prepublish": "yarn test"
"prepublish": "yarn test",
"postinstall": "husky install"
Copy link
Contributor

Choose a reason for hiding this comment

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

i don't think this is compatible for public packages, see: https://typicode.github.io/husky/getting-started.html#yarn-2

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is is not. I've now added pinst to account for that.

Copy link
Contributor

Choose a reason for hiding this comment

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

it is so hacky :(

@ffMathy
Copy link
Contributor

ffMathy commented Aug 29, 2023

LGTM too :)

@gismya gismya merged commit 3c7d61e into main Aug 29, 2023
2 checks passed
@gismya gismya deleted the setup-pre-commit-hooks branch August 29, 2023 12:26
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

Successfully merging this pull request may close these issues.

3 participants