fix(compiler-cli): correct realPath to realpath. (#25023)

The optional property on `ts.CompilerHost` is called `realpath` (lower
case), not `realPath` (lower camel case).

It is not clear to me what the impact of this is, but the author's
intent was clearly to override `realpath`.

PR Close #25023
This commit is contained in:
Martin Probst 2018-07-22 09:30:25 +02:00 committed by Igor Minar
parent a9ecf4b929
commit 01e6dab544
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ export class TsCompilerAotCompilerTypeCheckHostAdapter implements ts.CompilerHos
getNewLine = () => this.context.getNewLine();
// Make sure we do not `host.realpath()` from TS as we do not want to resolve symlinks.
// https://github.com/Microsoft/TypeScript/issues/9552
realPath = (p: string) => p;
realpath = (p: string) => p;
writeFile = this.context.writeFile.bind(this.context);
}