diff --git a/.husky/_/husky.sh b/.husky/_/husky.sh index cec959a..e69de29 100644 --- a/.husky/_/husky.sh +++ b/.husky/_/husky.sh @@ -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 diff --git a/package.json b/package.json index ed7db5d..badd505 100644 --- a/package.json +++ b/package.json @@ -114,7 +114,9 @@ "./package.json", "./CHANGELOG.md", "./README.md", - "./docs/api.md" + "./docs/api.md", + "./demo/demo.md", + "./demo/apiExamples.md" ] } ], @@ -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" } }