Skip to content

Infrastructure: Move husky install to prepare script#2033

Merged
howard-e merged 1 commit intow3c:mainfrom
WilcoFiers:patch-2
Oct 29, 2021
Merged

Infrastructure: Move husky install to prepare script#2033
howard-e merged 1 commit intow3c:mainfrom
WilcoFiers:patch-2

Conversation

@WilcoFiers
Copy link
Copy Markdown
Contributor

It is no longer recommended to use "postinstall" for Husky (see docs), and to use "prepare" instead. postinstall scripts can not be guaranteed to run, and make it impossible to aria-practices into another project. The following will throw an error, because the postinstall is used rather than prepare:

$ npm install -D w3c/aria-practices#main
> aria-practices@0.0.0 postinstall /Users/wilco/projects/axe-core/node_modules/aria-practices
> husky install

sh: husky: command not found

@mcking65 mcking65 changed the title Move husky install to prepare script Infrastructure: Move husky install to prepare script Oct 4, 2021
@mcking65 mcking65 added the Infrastructure Related to maintaining task force and repo operations, processes, systems, documentation label Oct 4, 2021
@mcking65 mcking65 requested a review from jesdaigle October 4, 2021 18:28
@mcking65 mcking65 added this to the 1.2 Release 1 milestone Oct 4, 2021
@WilcoFiers
Copy link
Copy Markdown
Contributor Author

WilcoFiers commented Oct 8, 2021

@jesdaigle Any idea when this could go in? If not, I can work from a fork, but I would prefer not to if I can avoid that.

@mcking65 mcking65 removed this from the 1.2 Release 1 milestone Oct 17, 2021
Copy link
Copy Markdown
Contributor

@zcorpan zcorpan left a comment

Choose a reason for hiding this comment

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

Rebased, CI checks are now green. The change LGTM, thanks!

@howard-e howard-e merged commit c9ecd4a into w3c:main Oct 29, 2021
@a11ydoer
Copy link
Copy Markdown
Contributor

@WilcoFiers please confirm.

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

Labels

Infrastructure Related to maintaining task force and repo operations, processes, systems, documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants