feat(build):增加 vue-tsc 依赖和 typecheck 命令

This commit is contained in:
妙码生花 2024-06-10 23:41:37 +08:00
parent 12b829f1de
commit 330295e95f
2 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,8 @@
"build": "vite build && esno ./src/utils/build.ts",
"lint": "eslint --ext .js,.jsx,.ts,.vue src",
"lint-fix": "eslint --ext .js,.jsx,.ts,.vue src --fix",
"format": "npx prettier --write ."
"format": "npx prettier --write .",
"typecheck": "vue-tsc --noEmit"
},
"dependencies": {
"@element-plus/icons-vue": "2.3.1",
@ -48,6 +49,7 @@
"sass": "1.77.4",
"typescript": "5.4.5",
"vite": "5.2.12",
"vue-eslint-parser": "9.4.3"
"vue-eslint-parser": "9.4.3",
"vue-tsc": "^2.0.21"
}
}

View File

@ -13,6 +13,7 @@
"isolatedModules": true,
"baseUrl": "./",
"allowJs": true,
"skipLibCheck": true,
"paths": {
"/@/*": ["src/*"]
},