From 1e0e0f7f58aafb95fe79ba81d9fc3e6b08864c9e Mon Sep 17 00:00:00 2001 From: Alec Larson Date: Thu, 6 Jun 2019 16:56:38 -0400 Subject: [PATCH] syntax: top-level functions Co-Authored-By: Arpad Borsos --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 3db694a..a3ba882 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,7 +13,7 @@ const formatHost: ts.FormatDiagnosticsHost = { getCanonicalFileName: ts.sys.useCaseSensitiveFileNames ? f => f : f => f.toLowerCase(), }; -const getCompilerOptions = (input: string): ts.CompilerOptions => { +function getCompilerOptions(input: string): ts.CompilerOptions { const configPath = ts.findConfigFile(path.dirname(input), ts.sys.fileExists); if (!configPath) { return {};