build: pre-commit检查改成检查ts类型
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user