Skip to content

Commit c1c4378

Browse files
build: fix type-checking
1 parent 4aa1029 commit c1c4378

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ fi
1010

1111
npm run lint
1212
npm run test
13+
npm run tsc

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
"lint": "eslint .",
2020
"lint:fix": "eslint --fix .",
2121
"test": "echo OK",
22+
"tsc": "tsc --noEmit",
2223
"prepare": "husky",
23-
"preversion": "npm run lint && npm run test && npm run build",
24+
"preversion": "npm run lint && npm run test && npm run tsc && npm run build",
2425
"version": "conventional-changelog -r 1 -p conventionalcommits -t v && git add CHANGELOG.md"
2526
},
2627
"repository": {
@@ -67,4 +68,4 @@
6768
"peerDependencies": {
6869
"eslint": ">= 9"
6970
}
70-
}
71+
}

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"esModuleInterop": true,
1111
"allowSyntheticDefaultImports": true,
1212
"experimentalDecorators": true,
13-
"declaration": true,
1413
"sourceMap": true,
1514
"strictNullChecks": true,
1615
"isolatedModules": true,

0 commit comments

Comments
 (0)