diff --git a/.husky/pre-commit b/.husky/pre-commit index 5a475c5..85bead7 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,5 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -npm run test +npm run test || npm install && npm run test npm run build && git add dist/ diff --git a/.husky/pre-push b/.husky/pre-push deleted file mode 100755 index 4caa8e0..0000000 --- a/.husky/pre-push +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npm install -npm test