Create a next specific base
The include still needs to be specified in the importing tsconfig otherwise the "." is resolved relative to the @/build-config.
This commit is contained in:
parent
74bb169f0d
commit
3b8c48e92d
|
@ -1,11 +1,6 @@
|
||||||
{
|
{
|
||||||
"extends": "@/build-config/tsconfig-typecheck.json",
|
"extends": "@/build-config/tsconfig-next.json",
|
||||||
"include": [
|
"include": ["src", "../../packages/shared/themes/mui-theme.d.ts"],
|
||||||
"src/**/*.ts",
|
|
||||||
"src/**/*.tsx",
|
|
||||||
"src/**/*.d.ts",
|
|
||||||
"../../packages/shared/themes/mui-theme.d.ts"
|
|
||||||
],
|
|
||||||
// Temporarily disable some things to get the existing code to compile
|
// Temporarily disable some things to get the existing code to compile
|
||||||
// without warnings.
|
// without warnings.
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
@ -13,9 +8,6 @@
|
||||||
|
|
||||||
"jsxImportSource": "@emotion/react",
|
"jsxImportSource": "@emotion/react",
|
||||||
|
|
||||||
/* Also indicate expectation of a WebWorker runtime */
|
|
||||||
"lib": ["ESnext", "DOM", "DOM.Iterable", "WebWorker"],
|
|
||||||
|
|
||||||
"verbatimModuleSyntax": false,
|
"verbatimModuleSyntax": false,
|
||||||
"resolveJsonModule": false,
|
"resolveJsonModule": false,
|
||||||
|
|
||||||
|
|
8
web/packages/build-config/tsconfig-next.json
Normal file
8
web/packages/build-config/tsconfig-next.json
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
/* A base TSConfig for typechecking our Next.js apps and packages. */
|
||||||
|
"extends": "@/build-config/tsconfig-typecheck.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
/* Also indicate expectation of a WebWorker runtime */
|
||||||
|
"lib": ["ESnext", "DOM", "DOM.Iterable", "WebWorker"]
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,9 +1,4 @@
|
||||||
{
|
{
|
||||||
"extends": "@/build-config/tsconfig-typecheck.json",
|
"extends": "@/build-config/tsconfig-next.json",
|
||||||
"compilerOptions": {
|
|
||||||
/* Also indicate expectation of a WebWorker runtime */
|
|
||||||
"lib": ["ESnext", "DOM", "DOM.Iterable", "WebWorker"]
|
|
||||||
},
|
|
||||||
/* Typecheck all files with the given extensions (here or in subfolders) */
|
|
||||||
"include": [".", "../../packages/next/global-electron.d.ts"]
|
"include": [".", "../../packages/next/global-electron.d.ts"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{
|
||||||
"extends": "@/build-config/tsconfig-typecheck.json",
|
"extends": "@/build-config/tsconfig-next.json",
|
||||||
"compilerOptions": {
|
|
||||||
/* Also indicate expectation of a WebWorker runtime */
|
|
||||||
"lib": ["ESnext", "DOM", "DOM.Iterable", "WebWorker"]
|
|
||||||
},
|
|
||||||
"include": ["."]
|
"include": ["."]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue