Skip to content

Commit 971c99c

Browse files
SouviknsIITI-tushar
authored andcommitted
refactor: remove unused dependencies (asyncapi#1795)
Co-authored-by: Souvikns <[email protected]>
1 parent 3198b58 commit 971c99c

19 files changed

+1633
-278
lines changed

.husky/applypatch-msg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit "$1"

.husky/h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env sh
2+
[ "$HUSKY" = "2" ] && set -x
3+
n=$(basename "$0")
4+
s=$(dirname "$(dirname "$0")")/$n
5+
6+
[ ! -f "$s" ] && exit 0
7+
8+
if [ -f "$HOME/.huskyrc" ]; then
9+
echo "husky - '~/.huskyrc' is DEPRECATED, please move your code to ~/.config/husky/init.sh"
10+
fi
11+
i="${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh"
12+
[ -f "$i" ] && . "$i"
13+
14+
[ "${HUSKY-}" = "0" ] && exit 0
15+
16+
export PATH="node_modules/.bin:$PATH"
17+
sh -e "$s" "$@"
18+
c=$?
19+
20+
[ $c != 0 ] && echo "husky - $n script failed (code $c)"
21+
[ $c = 127 ] && echo "husky - command not found in PATH=$PATH"
22+
exit $c

.husky/husky.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
echo "husky - DEPRECATED
2+
3+
Please remove the following two lines from $0:
4+
5+
#!/usr/bin/env sh
6+
. \"\$(dirname -- \"\$0\")/_/husky.sh\"
7+
8+
They WILL FAIL in v10.0.0
9+
"

.husky/post-applypatch

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/post-checkout

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/post-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/post-merge

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/post-rewrite

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/pre-applypatch

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/pre-auto-gc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/pre-commit

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged
5+
npm run lint
6+
npm run test:unit

.husky/pre-merge-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/pre-push

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/pre-rebase

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

.husky/prepare-commit-msg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/h"

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['@commitlint/config-conventional'] };

0 commit comments

Comments
 (0)