diff --git a/.githooks/pre-commit b/.githooks/pre-commit index cba2354..001b0a4 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -4,3 +4,4 @@ set -e set -o pipefail npm run lint +npm run typecheck diff --git a/package.json b/package.json index b601697..eddc83e 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "build:esm": "tsc --project tsconfig.esnext.json", "lint": "eslint --ext js,ts,tsx src", "lint:fix": "npm run lint -- --fix", + "typecheck": "tsc --noEmit", "test": "jest --config jestconfig.json --passWithNoTests", "prepare": "npm run build", "prepublishOnly": "npm run test && npm run lint",