Skip to content

Commit d483bf3

Browse files
authored
Explicitly specify rootDir to satisfy upcoming TypeScript v6. (#4599)
See [1] and [2] where the "rootDir" needs to be explicitly specified, otherwise it will default to "." unlike v5 which was defaulted to the common root folder of all input files. This fixes a build error in the downstream Chromium repository, see https://issues.chromium.org/issues/485931998. [1] https://devblogs.microsoft.com/typescript/announcing-typescript-6-0-beta/#up-front-adjustments [2] https://devblogs.microsoft.com/typescript/announcing-typescript-6-0-beta/#rootdir-now-defaults-to-.
1 parent 49f76dc commit d483bf3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"lib": ["dom", "ES2023"],
55
"module": "esnext",
6+
"rootDir": "./src",
67
// Use types only from these packages (not everything in package.json, which is the default).
78
// Note that TypeScript's `/// <reference />` is the same as adding an entry here - it's global
89
// to the whole project.

0 commit comments

Comments
 (0)