-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Description
Discussed at #54500:
Currently
rootDir, if not specified, is inferred based on the set of root files found (unlesscompositeis set).
In 6.0, the defaultrootDirwill always be the directory containing thetsconfig.jsonfile.
If a non-config-based build occurs,rootDirwill be inferred as before.This lets us go faster because we don't need to compute the set of input files in order to determine the structure of the output directory.
This also allows our language service to trivially determine whether a file could belong to another tsconfig.json with no differences in command-line behavior.
When unspecified, rootDir will be the same as "${configDir}".
Note
This is not the same as the similarly-named option rootDirs, which will continue to work the same in both 6.0 and 7.0.