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
This commit is contained in:
Pete Bacon Darwin 2020-05-08 13:33:56 +01:00 committed by Alex Rickabaugh
parent 6cce05e2c5
commit 0783d482a7

View File

@ -42,6 +42,6 @@ export class MockFileSystemWindows extends MockFileSystem {
} }
normalize<T extends PathString>(path: T): T { normalize<T extends PathString>(path: T): T {
return path.replace(/^[\/\\]/i, 'c:/').replace(/\\/g, '/') as T; return path.replace(/^[\/\\]/i, 'C:/').replace(/\\/g, '/') as T;
} }
} }