Handle root files listed in project config from referenced project to be same as if they were included through import (#58560)

This commit is contained in:
Sheetal Nandi
2024-05-20 10:05:42 -07:00
committed by GitHub
parent 79a851426c
commit d84431e706
17 changed files with 6870 additions and 91 deletions
+1 -1
View File
@@ -3765,7 +3765,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg
}
let redirectedPath: Path | undefined;
if (isReferencedFile(reason) && !useSourceOfProjectReferenceRedirect) {
if (!useSourceOfProjectReferenceRedirect) {
const redirectProject = getProjectReferenceRedirectProject(fileName);
if (redirectProject) {
if (redirectProject.commandLine.options.outFile) {