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