Skip to content

Commit

Permalink
build: update assets and add postversion script
Browse files Browse the repository at this point in the history
  • Loading branch information
blackfalcon committed Feb 8, 2024
1 parent 69f2dcd commit 2cc7d65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 38 deletions.
36 changes: 0 additions & 36 deletions .husky/_/husky.sh
Original file line number Diff line number Diff line change
@@ -1,36 +0,0 @@
#!/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")"
debug "starting $hook_name..."

if [ "$HUSKY" = "0" ]; then
debug "HUSKY env variable is set to 0, skipping hook"
exit 0
fi

if [ -f ~/.huskyrc ]; then
debug "sourcing ~/.huskyrc"
. ~/.huskyrc
fi

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
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@
"./package.json",
"./CHANGELOG.md",
"./README.md",
"./docs/api.md"
"./docs/api.md",
"./demo/demo.md",
"./demo/apiExamples.md"
]
}
],
Expand Down Expand Up @@ -156,6 +158,7 @@
"test": "wtr --coverage",
"test:watch": "wtr --watch",
"types": "tsc",
"prepare": "husky install"
"prepare": "husky install",
"postversion": "npm-run-all build:api build:docs"
}
}

0 comments on commit 2cc7d65

Please sign in to comment.