add typecheck

This commit is contained in:
Wlad Paiva
2023-10-11 11:38:24 -03:00
parent e6b6eebe33
commit 40c547c5af
4 changed files with 8 additions and 3 deletions
+3
View File
@@ -174,3 +174,6 @@ dist
# Finder (MacOS) folder config
.DS_Store
# TypeScript
*.tsbuildinfo
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
./node_modules/.bin/nano-staged && bun test
./node_modules/.bin/nano-staged && bun run typecheck && bun test
BIN
View File
Binary file not shown.
+4 -2
View File
@@ -4,7 +4,8 @@
"type": "module",
"scripts": {
"format": "prettier --write .",
"prepare": "husky install"
"prepare": "husky install",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.1.0",
@@ -12,7 +13,8 @@
"husky": "^8.0.0",
"nano-staged": "^0.8.0",
"nock": "^13.3.4",
"prettier": "^3.0.3"
"prettier": "^3.0.3",
"typescript": "^5.2.2"
},
"peerDependencies": {
"typescript": "^5.0.0"