]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: type check on commit
authorEvan You <yyx990803@gmail.com>
Thu, 2 Feb 2023 08:36:07 +0000 (16:36 +0800)
committerEvan You <yyx990803@gmail.com>
Thu, 2 Feb 2023 20:30:50 +0000 (04:30 +0800)
package.json

index d816699abe7961b4101d8988eacff00d328afb5a..6fd3d3ecc3c62b6236b9c3bd1b58c9ac58737b74 100644 (file)
@@ -8,6 +8,7 @@
     "size": "run-s size-global size-baseline",
     "size-global": "node scripts/build.mjs vue runtime-dom -f global -p",
     "size-baseline": "node scripts/build.mjs runtime-dom runtime-core reactivity shared -f esm-bundler && cd packages/size-check && vite build && node brotli",
+    "check": "tsc --incremental --noEmit",
     "lint": "eslint --cache --ext .ts packages/*/{src,__tests__}/**.ts",
     "format": "prettier --write --cache --parser typescript \"**/*.[tj]s?(x)\"",
     "format-check": "prettier --check --cache --parser typescript \"**/*.[tj]s?(x)\"",
@@ -37,7 +38,7 @@
   },
   "types": "test-dts/index.d.ts",
   "simple-git-hooks": {
-    "pre-commit": "pnpm lint-staged",
+    "pre-commit": "pnpm lint-staged && pnpm check",
     "commit-msg": "node scripts/verifyCommit.mjs"
   },
   "lint-staged": {