Skip to content

Commit

Permalink
Remove postinstall script as it causes issues for consumers
Browse files Browse the repository at this point in the history
  • Loading branch information
fatso83 committed Oct 19, 2023
1 parent 6547aa1 commit 93e8aa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions scripts/setup-hooks
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 93e8aa9

Please sign in to comment.