Skip to content

Commit 7bc7066

Browse files
committed
workflow: type check on commit
1 parent f87f788 commit 7bc7066

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"size": "run-s size-global size-baseline",
99
"size-global": "node scripts/build.mjs vue runtime-dom -f global -p",
1010
"size-baseline": "node scripts/build.mjs runtime-dom runtime-core reactivity shared -f esm-bundler && cd packages/size-check && vite build && node brotli",
11+
"check": "tsc --incremental --noEmit",
1112
"lint": "eslint --cache --ext .ts packages/*/{src,__tests__}/**.ts",
1213
"format": "prettier --write --cache --parser typescript \"**/*.[tj]s?(x)\"",
1314
"format-check": "prettier --check --cache --parser typescript \"**/*.[tj]s?(x)\"",
@@ -37,7 +38,7 @@
3738
},
3839
"types": "test-dts/index.d.ts",
3940
"simple-git-hooks": {
40-
"pre-commit": "pnpm lint-staged",
41+
"pre-commit": "pnpm lint-staged && pnpm check",
4142
"commit-msg": "node scripts/verifyCommit.mjs"
4243
},
4344
"lint-staged": {

0 commit comments

Comments
 (0)