Skip to content

Commit

Permalink
perf: update legacy dependencies #137
Browse files Browse the repository at this point in the history
Change to be committed:
modified: package-lock.json
modified: package.json
new file: packageScripts/postinstall.mjs
  • Loading branch information
irma-kurnia-phtn authored and blackfalcon committed May 24, 2023
1 parent 0829716 commit dc8b465
Show file tree
Hide file tree
Showing 4 changed files with 5,487 additions and 3,726 deletions.
11 changes: 8 additions & 3 deletions .husky/_/husky.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh
#!/usr/bin/env sh
if [ -z "$husky_skip_init" ]; then
debug () {
if [ "$HUSKY_DEBUG" = "1" ]; then
echo "husky (debug) - $1"
fi
}

readonly hook_name="$(basename "$0")"
readonly hook_name="$(basename -- "$0")"
debug "starting $hook_name..."

if [ "$HUSKY" = "0" ]; then
Expand All @@ -19,13 +19,18 @@ if [ -z "$husky_skip_init" ]; then
. ~/.huskyrc
fi

export readonly husky_skip_init=1
readonly husky_skip_init=1
export husky_skip_init
sh -e "$0" "$@"
exitCode="$?"

if [ $exitCode != 0 ]; then
echo "husky - $hook_name hook exited with code $exitCode (error)"
fi

if [ $exitCode = 127 ]; then
echo "husky - command not found in PATH=$PATH"
fi

exit $exitCode
fi
Loading

0 comments on commit dc8b465

Please sign in to comment.