Skip to content

Commit df3f58a

Browse files
committed
[tsconfig.json] Use wildcard paths to include all TS/JS files in the source folders.
This ensures that VSCode recognizes new files, indexes them, and allows e.g. ESLint to recognize them. Workaround from @orblazer at microsoft/TypeScript#45721
1 parent 1ba08c9 commit df3f58a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tsconfig.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
"rootDir": "./",
2020
"outDir": "./dist"
2121
},
22-
"include": ["src", "script"],
22+
"include": [
23+
"src",
24+
"src/**/*.ts", // Workaround from https://github.com/microsoft/TypeScript/issues/45721
25+
"src/**/*.js", // Workaround from https://github.com/microsoft/TypeScript/issues/45721
26+
"script",
27+
"script/**/*.ts", // Workaround from https://github.com/microsoft/TypeScript/issues/45721
28+
"script/**/*.js" // Workaround from https://github.com/microsoft/TypeScript/issues/45721
29+
],
2330
"exclude": ["src/static", "src/cubing/search/worker-inside-generated*"]
2431
}

0 commit comments

Comments
 (0)