Skip to content

Commit 30fc8f6

Browse files
authored
Merge pull request #8 from aboutbits/typecheck
Add typecheck as npm cmd, pre-commit hook
2 parents 9c0a9e9 + 0239f87 commit 30fc8f6

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
@@ -23,6 +23,7 @@
2323
"build:esm": "tsc --project tsconfig.esnext.json",
2424
"lint": "eslint --ext js,ts,tsx src",
2525
"lint:fix": "npm run lint -- --fix",
26+
"typecheck": "tsc --noEmit",
2627
"test": "jest --config jestconfig.json --passWithNoTests",
2728
"prepare": "npm run build",
2829
"prepublishOnly": "npm run test && npm run lint",

0 commit comments

Comments
 (0)