From 74c096b673722616eb6b53fbb45a441ed84c322b Mon Sep 17 00:00:00 2001 From: ziga Date: Sat, 13 Mar 2021 14:48:48 +0100 Subject: [PATCH] Add `vue-tsc` to type check `.ts` and `.vue` files --- packages/create-app/template-vue-ts/package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/create-app/template-vue-ts/package.json b/packages/create-app/template-vue-ts/package.json index 7618334a524a83..f59d063ad72d4b 100644 --- a/packages/create-app/template-vue-ts/package.json +++ b/packages/create-app/template-vue-ts/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "scripts": { "dev": "vite", - "build": "vite build", + "build": "vue-tsc --noEmit && vite build", "serve": "vite preview" }, "dependencies": { @@ -13,6 +13,7 @@ "@vitejs/plugin-vue": "^1.1.5", "@vue/compiler-sfc": "^3.0.5", "typescript": "^4.1.3", - "vite": "^2.0.5" + "vite": "^2.0.5", + "vue-tsc": "^0.0.8" } -} \ No newline at end of file +}