Skip to content

Commit 9e34df6

Browse files
authored
Merge pull request #9 from aboutbits/typecheck
Add typecheck as npm cmd, pre-commit hook and ci check
2 parents ad06c6c + 12e8fc7 commit 9e34df6

3 files changed

Lines changed: 3 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

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ jobs:
1111
registry-url: 'https://registry.npmjs.org'
1212
- run: npm install
1313
- run: npm run lint
14+
- run: npm run typecheck
1415
- run: npm run test

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"build:esm": "tsc --project tsconfig.esnext.json",
1616
"lint": "eslint --ext js,ts,tsx src",
1717
"lint:fix": "npm run lint -- --fix",
18+
"typecheck": "tsc --noEmit",
1819
"test": "jest --verbose --passWithNoTests",
1920
"prepare": "npm run build",
2021
"prepublishOnly": "npm run test && npm run lint",

0 commit comments

Comments
 (0)