From 93e8aa93c56c2d9d1ff783263adbd93de2603803 Mon Sep 17 00:00:00 2001 From: Carl-Erik Kopseng Date: Thu, 19 Oct 2023 08:05:57 +0200 Subject: [PATCH] Remove postinstall script as it causes issues for consumers --- package.json | 3 +-- scripts/setup-hooks | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 425069004..1083bcfb0 100644 --- a/package.json +++ b/package.json @@ -58,8 +58,7 @@ "prettier:write": "prettier --write '**/*.{js,css,md}'", "preversion": "./scripts/preversion.sh", "version": "./scripts/version.sh", - "postversion": "./scripts/postversion.sh", - "postinstall": "./scripts/setup-hooks" + "postversion": "./scripts/postversion.sh" }, "nyc": { "instrument": false, diff --git a/scripts/setup-hooks b/scripts/setup-hooks index 55edf3c70..e4df04ef0 100755 --- a/scripts/setup-hooks +++ b/scripts/setup-hooks @@ -6,6 +6,4 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "$SCRIPT_DIR/.." # only install git hooks for people developing Sinon -if basename $PWD > /dev/null && [[ -e .git/config ]] ; then - git config --replace-all core.hooksPath scripts/hooks -fi +git config --replace-all core.hooksPath scripts/hooks