fix husky install (#1212)

yarn2+ doesn't run the prepare script when you install a project, so our
husky hooks weren't getting set up correctly :(
This commit is contained in:
alex 2023-05-02 14:26:57 +01:00 committed by GitHub
parent f5c5b05dc7
commit e81e269e72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@
],
"scripts": {
"clean": "scripts/clean.sh",
"postinstall": "yarn refresh-assets",
"postinstall": "husky install && yarn refresh-assets",
"refresh-assets": "lazy refresh-assets",
"build": "lazy build",
"build-docs": "lazy build-docs",
@ -48,8 +48,7 @@
"typecheck": "yarn refresh-assets && tsx scripts/typecheck.ts",
"check-scripts": "tsx scripts/check-scripts.ts",
"api-check": "lazy api-check",
"test": "lazy test",
"prepare": "husky install"
"test": "lazy test"
},
"engines": {
"npm": ">=7.0.0"