diff --git a/.husky/_/.gitignore b/.husky/_/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/.husky/_/applypatch-msg b/.husky/_/applypatch-msg deleted file mode 100755 index 16aae78f5..000000000 --- a/.husky/_/applypatch-msg +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file diff --git a/.husky/_/commit-msg b/.husky/_/commit-msg deleted file mode 100755 index 16aae78f5..000000000 --- a/.husky/_/commit-msg +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file diff --git a/.husky/_/h b/.husky/_/h deleted file mode 100644 index bf7c89640..000000000 --- a/.husky/_/h +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env sh -[ "$HUSKY" = "2" ] && set -x -n=$(basename "$0") -s=$(dirname "$(dirname "$0")")/$n - -[ ! -f "$s" ] && exit 0 - -if [ -f "$HOME/.huskyrc" ]; then - echo "husky - '~/.huskyrc' is DEPRECATED, please move your code to ~/.config/husky/init.sh" -fi -i="${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh" -[ -f "$i" ] && . "$i" - -[ "${HUSKY-}" = "0" ] && exit 0 - -export PATH="node_modules/.bin:$PATH" -sh -e "$s" "$@" -c=$? - -[ $c != 0 ] && echo "husky - $n script failed (code $c)" -[ $c = 127 ] && echo "husky - command not found in PATH=$PATH" -exit $c diff --git a/.husky/_/husky.sh b/.husky/_/husky.sh deleted file mode 100644 index f9d063790..000000000 --- a/.husky/_/husky.sh +++ /dev/null @@ -1,9 +0,0 @@ -echo "husky - DEPRECATED - -Please remove the following two lines from $0: - -#!/usr/bin/env sh -. \"\$(dirname -- \"\$0\")/_/husky.sh\" - -They WILL FAIL in v10.0.0 -" \ No newline at end of file diff --git a/.husky/_/post-applypatch b/.husky/_/post-applypatch deleted file mode 100755 index 16aae78f5..000000000 --- a/.husky/_/post-applypatch +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file diff --git a/.husky/_/post-checkout b/.husky/_/post-checkout deleted file mode 100755 index 16aae78f5..000000000 --- a/.husky/_/post-checkout +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file diff --git a/.husky/_/post-commit b/.husky/_/post-commit deleted file mode 100755 index 16aae78f5..000000000 --- a/.husky/_/post-commit +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file diff --git a/.husky/_/post-merge b/.husky/_/post-merge deleted file mode 100755 index 16aae78f5..000000000 --- a/.husky/_/post-merge +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file diff --git a/.husky/_/post-rewrite b/.husky/_/post-rewrite deleted file mode 100755 index 16aae78f5..000000000 --- a/.husky/_/post-rewrite +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file diff --git a/.husky/_/pre-applypatch b/.husky/_/pre-applypatch deleted file mode 100755 index 16aae78f5..000000000 --- a/.husky/_/pre-applypatch +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file diff --git a/.husky/_/pre-auto-gc b/.husky/_/pre-auto-gc deleted file mode 100755 index 16aae78f5..000000000 --- a/.husky/_/pre-auto-gc +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file diff --git a/.husky/_/pre-commit b/.husky/_/pre-commit deleted file mode 100755 index 16aae78f5..000000000 --- a/.husky/_/pre-commit +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file diff --git a/.husky/_/pre-merge-commit b/.husky/_/pre-merge-commit deleted file mode 100755 index 16aae78f5..000000000 --- a/.husky/_/pre-merge-commit +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file diff --git a/.husky/_/pre-push b/.husky/_/pre-push deleted file mode 100755 index 16aae78f5..000000000 --- a/.husky/_/pre-push +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file diff --git a/.husky/_/pre-rebase b/.husky/_/pre-rebase deleted file mode 100755 index 16aae78f5..000000000 --- a/.husky/_/pre-rebase +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file diff --git a/.husky/_/prepare-commit-msg b/.husky/_/prepare-commit-msg deleted file mode 100755 index 16aae78f5..000000000 --- a/.husky/_/prepare-commit-msg +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file diff --git a/package.json b/package.json index 92ad4b826..f2d6b0440 100644 --- a/package.json +++ b/package.json @@ -8,5 +8,8 @@ "commitizen": { "path": "./node_modules/cz-conventional-changelog" } + }, + "scripts": { + "prepare": "husky" } }