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", "build": "vite build && esno ./src/utils/build.ts",
"lint": "eslint --ext .js,.jsx,.ts,.vue src", "lint": "eslint --ext .js,.jsx,.ts,.vue src",
"lint-fix": "eslint --ext .js,.jsx,.ts,.vue src --fix", "lint-fix": "eslint --ext .js,.jsx,.ts,.vue src --fix",
"format": "npx prettier --write ." "format": "npx prettier --write .",
"typecheck": "vue-tsc --noEmit"
}, },
"dependencies": { "dependencies": {
"@element-plus/icons-vue": "2.3.1", "@element-plus/icons-vue": "2.3.1",
@ -48,6 +49,7 @@
"sass": "1.77.4", "sass": "1.77.4",
"typescript": "5.4.5", "typescript": "5.4.5",
"vite": "5.2.12", "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, "isolatedModules": true,
"baseUrl": "./", "baseUrl": "./",
"allowJs": true, "allowJs": true,
"skipLibCheck": true,
"paths": { "paths": {
"/@/*": ["src/*"] "/@/*": ["src/*"]
}, },