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:
parent
f5c5b05dc7
commit
e81e269e72
1 changed files with 2 additions and 3 deletions
|
@ -33,7 +33,7 @@
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "scripts/clean.sh",
|
"clean": "scripts/clean.sh",
|
||||||
"postinstall": "yarn refresh-assets",
|
"postinstall": "husky install && yarn refresh-assets",
|
||||||
"refresh-assets": "lazy refresh-assets",
|
"refresh-assets": "lazy refresh-assets",
|
||||||
"build": "lazy build",
|
"build": "lazy build",
|
||||||
"build-docs": "lazy build-docs",
|
"build-docs": "lazy build-docs",
|
||||||
|
@ -48,8 +48,7 @@
|
||||||
"typecheck": "yarn refresh-assets && tsx scripts/typecheck.ts",
|
"typecheck": "yarn refresh-assets && tsx scripts/typecheck.ts",
|
||||||
"check-scripts": "tsx scripts/check-scripts.ts",
|
"check-scripts": "tsx scripts/check-scripts.ts",
|
||||||
"api-check": "lazy api-check",
|
"api-check": "lazy api-check",
|
||||||
"test": "lazy test",
|
"test": "lazy test"
|
||||||
"prepare": "husky install"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"npm": ">=7.0.0"
|
"npm": ">=7.0.0"
|
||||||
|
|
Loading…
Reference in a new issue