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 :(
pull/1217/head
alex 2023-05-02 14:26:57 +01:00 zatwierdzone przez GitHub
rodzic f5c5b05dc7
commit e81e269e72
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -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"