From cf3753d832af61c5d7d93419234550f4ac46d98f Mon Sep 17 00:00:00 2001 From: Lukas Weiss Date: Wed, 29 Jun 2022 12:35:59 +0200 Subject: [PATCH] add typecheck as npm cmd, pre-commit hook --- .githooks/pre-commit | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/.githooks/pre-commit b/.githooks/pre-commit index cba2354c7..001b0a4e5 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 d262abe99..bac45119b 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "generate": "rm -rf src/* && node generator.js", "lint": "eslint --ext js,ts,tsx src ./generator.js", "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",