From 0783d482a7991421d4b1ca2ee2e74f83ae5794e4 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Fri, 8 May 2020 13:33:56 +0100 Subject: [PATCH] Revert "fix(compiler-cli): normalize mock Windows file paths correctly (#36968)" (#37003) This reverts commit 654868f5840597b16adf9ff7f71d0e9f32f04946. 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 --- .../ngtsc/file_system/testing/src/mock_file_system_windows.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system_windows.ts b/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system_windows.ts index e733197d3b..9cabd0a2b9 100644 --- a/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system_windows.ts +++ b/packages/compiler-cli/src/ngtsc/file_system/testing/src/mock_file_system_windows.ts @@ -42,6 +42,6 @@ export class MockFileSystemWindows extends MockFileSystem { } normalize(path: T): T { - return path.replace(/^[\/\\]/i, 'c:/').replace(/\\/g, '/') as T; + return path.replace(/^[\/\\]/i, 'C:/').replace(/\\/g, '/') as T; } }