From 330295e95fe2c916b6227d7db8c0a9727d15baa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=99=E7=A0=81=E7=94=9F=E8=8A=B1?= <18523774412@qq.com> Date: Mon, 10 Jun 2024 23:41:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(build):=E5=A2=9E=E5=8A=A0=20vue-tsc=20?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=92=8C=20typecheck=20=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/package.json | 6 ++++-- web/tsconfig.json | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web/package.json b/web/package.json index 135dfb00..84d9a994 100644 --- a/web/package.json +++ b/web/package.json @@ -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" } } diff --git a/web/tsconfig.json b/web/tsconfig.json index 4d4e5b5d..7b52b4a4 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -13,6 +13,7 @@ "isolatedModules": true, "baseUrl": "./", "allowJs": true, + "skipLibCheck": true, "paths": { "/@/*": ["src/*"] },