From 01e6dab5448c47e61f843a91302263016bcde587 Mon Sep 17 00:00:00 2001 From: Martin Probst Date: Sun, 22 Jul 2018 09:30:25 +0200 Subject: [PATCH] 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 --- packages/compiler-cli/src/transformers/compiler_host.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-cli/src/transformers/compiler_host.ts b/packages/compiler-cli/src/transformers/compiler_host.ts index 5472045d56..eb54ffd943 100644 --- a/packages/compiler-cli/src/transformers/compiler_host.ts +++ b/packages/compiler-cli/src/transformers/compiler_host.ts @@ -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); }