diff --git a/.husky/pre-commit b/.husky/pre-commit index 36af219..654ca47 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -npx lint-staged +npx lint-staged && npm run type-check diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100755 index 0000000..610c2a5 --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npm test diff --git a/.huskyrc.js b/.huskyrc.js deleted file mode 100644 index def558a..0000000 --- a/.huskyrc.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - hooks: { - 'pre-commit': 'lint-staged && npm run type-check', - }, -} diff --git a/.npmignore b/.npmignore index acd3571..4d6253f 100644 --- a/.npmignore +++ b/.npmignore @@ -8,7 +8,6 @@ src/ .eslintcache .eslintignore .eslintrc.js -.huskyrc.js .lintstagedrc.js .prettierignore .prettierrc.json