From a8478a37766d65186c3b47de040dcab731ef7499 Mon Sep 17 00:00:00 2001 From: Riley Ho Date: Wed, 28 Aug 2024 18:21:46 +0800 Subject: [PATCH 1/3] chore: fix tsc not checking .vitepress --- tsconfig.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 1caa7d0..4df830a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,5 +17,10 @@ "noEmit": true, "isolatedModules": true, "skipLibCheck": true - } + }, + "include": [ + ".vitepress/**/*", + "components/**/*", + "loaders/**/*" + ] } From f687bc20c4127e3db40ee859da2c27de849a0e1b Mon Sep 17 00:00:00 2001 From: Riley Ho Date: Wed, 28 Aug 2024 18:22:14 +0800 Subject: [PATCH 2/3] chore: fix tsconfig path aliases --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 4df830a..456a6d2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,7 @@ // Required until this issue is resolved // https://github.com/microsoft/TypeScript/issues/52460 "paths": { - "#*": ["./src/*"] + "#*": ["./*"] }, "allowImportingTsExtensions": true, From 5e63d17c4c976b4c98ced8b65ab47b8ed4d0c12f Mon Sep 17 00:00:00 2001 From: Riley Ho Date: Wed, 28 Aug 2024 18:23:04 +0800 Subject: [PATCH 3/3] chore: remove unnecessary noEmit argument when type-checking --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4e74535..798abb2 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "prepare": "husky", "lint": "eslint .", "lint:fix": "eslint . --fix", - "type-check": "vue-tsc --noEmit" + "type-check": "vue-tsc" }, "dependencies": { "vue": "^3.4.37"