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

chore: swapping Husky to prepare rather than postinstall #1617

Merged
merged 3 commits into from
Jul 21, 2024

Conversation

claylevering
Copy link
Contributor

Resolves issue #1531 - the Husky package should no longer be executed as a postinstall script and should instead be part of the prepare phase of the NPM lifecycle scripts (thus keeping Husky out of package installations).

Caveat - I am not a Yarn user so I ::hope:: that this breaks nothing. It appeared to function for me, though I encourage @foray1010 to validate before publishing anything.

@foray1010 foray1010 merged commit c300cc1 into foray1010:master Jul 21, 2024
@foray1010
Copy link
Owner

foray1010 commented Jul 21, 2024

@claylevering Thank you for making a PR for this! The original change does not work as intended because yarn v4 does not support prepare lifecycle. So I have removed husky and pinst temporarily. It is not ideal but we can still rely on CI for checking commits.

Please try v7.0.2 and it should work now!

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.

2 participants