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