Skip to content

Commit aefa5b1

Browse files
authored
chore: tweak tsconfig includes (#13663)
this should hopefully make the editor experience more stable, as the chance of the world being loaded in is minimized. Previously (I think) the import of the general utils file from any of the project's test files meant that as soon as you open one test project, all the test projects at once were loaded into memory, including stuff from .svelte-kit, because the general test config didn't have an include config. Also removes an unnecessary duplicate from the kit root tsconfig
1 parent 84eb6c2 commit aefa5b1

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"compilerOptions": {
3+
"allowJs": true,
4+
"checkJs": true,
5+
"noEmit": true,
6+
"strict": true,
7+
"target": "esnext",
8+
"module": "esnext",
9+
"moduleResolution": "node",
10+
"allowSyntheticDefaultImports": true
11+
},
12+
"include": ["./*"]
13+
}

packages/kit/test/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"module": "esnext",
99
"moduleResolution": "node",
1010
"allowSyntheticDefaultImports": true
11-
}
11+
},
12+
"include": ["./*", "./mocks/**/*", "./prerendering/*"]
1213
}

packages/kit/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
"noUnusedLocals": true,
1818
"noUnusedParameters": true
1919
},
20-
"include": ["*.js", "scripts/**/*", "src/**/*", "src/types/**/*"],
20+
"include": ["*.js", "scripts/**/*", "src/**/*"],
2121
"exclude": ["./**/write_types/test/**"]
2222
}

0 commit comments

Comments
 (0)