From e81e269e7219623b58a97d5be70b4960edbfbc34 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 2 May 2023 14:26:57 +0100 Subject: [PATCH] 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 :( --- package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 94be0c308..193ae56cf 100644 --- a/package.json +++ b/package.json @@ -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"