From 40f6631ac9474e2c78c15b9d6d360c8c45e26dd9 Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Mon, 19 Aug 2024 15:55:18 +0200 Subject: [PATCH] Fix Husky git hooks not being installed anymore (#31435) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 371b7cbf3d1..321a78598df 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "lint:css": "stylelint \"**/*.{css,scss}\"", "lint": "yarn lint:js && yarn lint:css", "postversion": "git push --tags", - "prepare": "husky", + "postinstall": "test -d node_modules/husky && husky || echo \"husky is not installed\"", "start": "node ./streaming/index.js", "test": "yarn lint && yarn run typecheck && yarn jest", "typecheck": "tsc --noEmit"