From 3334305b2912df82da7e8fb493932cce446cfceb Mon Sep 17 00:00:00 2001 From: Blake Embrey Date: Thu, 9 Jan 2020 16:41:33 -0800 Subject: [PATCH] Remove normalize slashes from config file loading --- src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index edde1c84a..fe347f2b6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -864,7 +864,7 @@ function readConfig ( options?: TsConfigOptions } { let config: any = { compilerOptions: {} } - let basePath = normalizeSlashes(cwd) + let basePath = cwd let configFileName: string | undefined = undefined const { @@ -877,8 +877,8 @@ function readConfig ( // Read project configuration when available. if (!skipProject) { configFileName = project - ? normalizeSlashes(resolve(cwd, project)) - : ts.findConfigFile(normalizeSlashes(cwd), fileExists) + ? resolve(cwd, project) + : ts.findConfigFile(cwd, fileExists) if (configFileName) { const result = ts.readConfigFile(configFileName, readFile) @@ -889,7 +889,7 @@ function readConfig ( } config = result.config - basePath = normalizeSlashes(dirname(configFileName)) + basePath = dirname(configFileName) } }