Skip to content

Commit

Permalink
Merge pull request #10 from COSCUP/explicit-tsconfig-include
Browse files Browse the repository at this point in the history
Fix type-checking by explicitly specifying `include` in tsconfig.json
  • Loading branch information
rileychh authored Aug 31, 2024
2 parents 9347035 + 5e63d17 commit 0c1e99e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 7 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@
// Required until this issue is resolved
// https://github.com/microsoft/TypeScript/issues/52460
"paths": {
"#*": ["./src/*"]
"#*": ["./*"]
},

"allowImportingTsExtensions": true,
"strict": true,
"noEmit": true,
"isolatedModules": true,
"skipLibCheck": true
}
},
"include": [
".vitepress/**/*",
"components/**/*",
"loaders/**/*"
]
}

0 comments on commit 0c1e99e

Please sign in to comment.