Skip to content

Commit 93e8aa9

Browse files
committed
Remove postinstall script as it causes issues for consumers
1 parent 6547aa1 commit 93e8aa9

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@
5858
"prettier:write": "prettier --write '**/*.{js,css,md}'",
5959
"preversion": "./scripts/preversion.sh",
6060
"version": "./scripts/version.sh",
61-
"postversion": "./scripts/postversion.sh",
62-
"postinstall": "./scripts/setup-hooks"
61+
"postversion": "./scripts/postversion.sh"
6362
},
6463
"nyc": {
6564
"instrument": false,

scripts/setup-hooks

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
66
cd "$SCRIPT_DIR/.."
77

88
# only install git hooks for people developing Sinon
9-
if basename $PWD > /dev/null && [[ -e .git/config ]] ; then
10-
git config --replace-all core.hooksPath scripts/hooks
11-
fi
9+
git config --replace-all core.hooksPath scripts/hooks

0 commit comments

Comments
 (0)