From 6da7966e276734e534404aaf8af159a5c757cc3d Mon Sep 17 00:00:00 2001 From: Nick K Date: Sun, 19 Nov 2023 10:43:19 +0300 Subject: [PATCH] Simplify husky disable script --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0f1e452..da5fb82 100644 --- a/package.json +++ b/package.json @@ -78,8 +78,8 @@ "ci": "c8 pnpm test && c8 report --reporter=json", "build": "pnpm exec del-cli lib && pnpm exec tsup", "test": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" ava", - "prepare": "node -e 'process.exit(+(process.env.CI !== undefined || process.env.NO_HUSKY_HOOKS !== undefined));' && husky install || true", - "release": "pnpm run build && pnpm exec changeset publish" + "release": "pnpm run build && pnpm exec changeset publish", + "prepare": "npx is-in-ci || husky install" }, "devDependencies": { "@changesets/changelog-github": "0.4.8",