Skip to content

Assume rootDir is the current configuration directory #62194

@DanielRosenwasser

Description

@DanielRosenwasser

Discussed at #54500:

Currently rootDir, if not specified, is inferred based on the set of root files found (unless composite is set).
In 6.0, the default rootDir will always be the directory containing the tsconfig.json file.
If a non-config-based build occurs, rootDir will 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.

Metadata

Metadata

Assignees

Labels

Breaking ChangeWould introduce errors in existing codeCommittedThe team has roadmapped this issueFix AvailableA PR has been opened for this issueSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions