From 4423ab5109bf075cf11e8b780ca13f5224c495c4 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Fri, 8 May 2020 13:34:02 +0100 Subject: [PATCH] Revert "fix(compiler-cli): ensure `getRootDirs()` handles case-sensitivity (#36968)" (#37003) This reverts commit 5bddeea559754283d6f51741741a313f8f4c20be. The changes to the case-sensitivity handling in #36968 caused multiple projects to fail to build. See #36992, #36993 and #37000. The issue is related to the logical path handling. But it is felt that it is safer to revert the entire PR and then to investigate further. PR Close #37003 --- packages/compiler-cli/src/ngtsc/util/src/typescript.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-cli/src/ngtsc/util/src/typescript.ts b/packages/compiler-cli/src/ngtsc/util/src/typescript.ts index c4632994b9..dc38c2a96c 100644 --- a/packages/compiler-cli/src/ngtsc/util/src/typescript.ts +++ b/packages/compiler-cli/src/ngtsc/util/src/typescript.ts @@ -105,7 +105,7 @@ export function getRootDirs(host: ts.CompilerHost, options: ts.CompilerOptions): // See: // https://github.com/Microsoft/TypeScript/blob/3f7357d37f66c842d70d835bc925ec2a873ecfec/src/compiler/sys.ts#L650 // Also compiler options might be set via an API which doesn't normalize paths - return rootDirs.map(rootDir => absoluteFrom(host.getCanonicalFileName(rootDir))); + return rootDirs.map(rootDir => absoluteFrom(rootDir)); } export function nodeDebugInfo(node: ts.Node): string {