Add baseUrl, outDir, and exclude options (#5757)

- Fixes erroneous TS language server warnings showing up in the VSCode terminal

- Ensures TypeScript language server features (such as refactor) are able to work properly by excluding build files
This commit is contained in:
Jesse Mazzella 2022-09-14 10:05:41 -07:00 committed by GitHub
parent a073649e64
commit cae579f5b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@
*/
{
"compilerOptions": {
"baseUrl": "./",
"allowJs": true,
"checkJs": false,
"strict": true,
@ -11,10 +12,14 @@
"noImplicitOverride": true,
"module": "esnext",
"moduleResolution": "node",
"outDir": "dist",
"paths": {
// matches the alias in webpack config, so that types for those imports are visible.
"@/*": ["src/*"]
}
}
},
"exclude": [
"node_modules",
"dist"
]
}