From f0f3119ce04dda4ba5e50cfb72e6b097ba6e44da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Tarroja=20Caubet?= Date: Mon, 13 Jul 2026 15:38:27 +0200 Subject: [PATCH] fix: make husky prepare script non-fatal on install The prepare lifecycle script runs husky, a devDependency. Consumers install with --omit=dev (e.g. pi install), so husky is absent but npm still runs prepare, failing with code 127. Appending '|| true' lets installs succeed while contributors with husky installed still get hooks. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d576fc6..fe2c95b 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "check": "tsgo --noEmit", - "prepare": "husky" + "prepare": "husky || true" }, "pi": { "extensions": [