Revert "fix(ivy): correct ngtsc path handling in Windows (#26703)"

This reverts commit d0037b22ef. The commit must be temporarily reverted because
there were unforeseen breakages in g3.
This commit is contained in:
Kara Erickson
2018-11-05 11:18:52 -08:00
parent d0037b22ef
commit 4e4bca6bbc
10 changed files with 15 additions and 18 deletions

View File

@ -10,7 +10,6 @@ ts_library(
]),
deps = [
"//packages:types",
"@ngdeps//canonical-path",
"@ngdeps//typescript",
],
)

View File

@ -8,7 +8,7 @@
///<reference types="jasmine"/>
import * as path from 'canonical-path';
import * as path from 'path';
import * as ts from 'typescript';
export function makeProgram(
@ -93,7 +93,7 @@ export class InMemoryHost implements ts.CompilerHost {
}
getCanonicalFileName(fileName: string): string {
return path.normalize(`${this.getCurrentDirectory()}/${fileName}`);
return path.posix.normalize(`${this.getCurrentDirectory()}/${fileName}`);
}
useCaseSensitiveFileNames(): boolean { return true; }