Skip to content

Commit cf3753d

Browse files
committed
add typecheck as npm cmd, pre-commit hook
1 parent 38dfa91 commit cf3753d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.githooks/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ set -e
44
set -o pipefail
55

66
npm run lint
7+
npm run typecheck

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"generate": "rm -rf src/* && node generator.js",
99
"lint": "eslint --ext js,ts,tsx src ./generator.js",
1010
"lint:fix": "npm run lint -- --fix",
11+
"typecheck": "tsc --noEmit",
1112
"test": "jest --config jestconfig.json --passWithNoTests",
1213
"prepare": "npm run build",
1314
"prepublishOnly": "npm run test && npm run lint",

0 commit comments

Comments
 (0)