From 52b888cf0797999f5eced59626241ec171ab91b0 Mon Sep 17 00:00:00 2001 From: l0r1s Date: Tue, 18 Apr 2023 13:16:05 +0300 Subject: [PATCH] chore: fixed husky run in CI --- javascript/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/package.json b/javascript/package.json index 319fd8fa5e..3c4528efd5 100644 --- a/javascript/package.json +++ b/javascript/package.json @@ -20,7 +20,7 @@ "package:macos": "npm run -w packages/cli package:macos", "zombie": "node ./packages/cli/dist/cli.js", "test": "npm run test --workspaces --if-present", - "postinstall": "cd .. && husky install javascript/.husky" + "postinstall": "if [[ -n $CI ]]; then cd .. && husky install javascript/.husky; fi" }, "engines": { "node": ">=18"