1
0
mirror of synced 2025-12-11 20:28:34 +08:00

build: pre-commit检查改成检查ts类型

This commit is contained in:
roymondchen
2024-04-23 15:24:25 +08:00
parent 883e5d60fa
commit 7a9e5ca6f6
14 changed files with 20 additions and 11 deletions

View File

@@ -20,7 +20,8 @@
"scripts": {
"build": "rimraf ./dist && npm run build:type && vite build --mode=es && vite build --mode=umd",
"build:type": "npm run clear:type && tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
"clear:type": "rimraf ./types"
"clear:type": "rimraf ./types",
"check:type": "tsc --noEmit --project tsconfig.build.json"
},
"engines": {
"node": ">=18"