Skip to content

Commit

Permalink
Remove normalize slashes from config file loading
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Jan 10, 2020
1 parent 8834d64 commit 3334305
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Expand Up @@ -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 {
Expand All @@ -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)
Expand All @@ -889,7 +889,7 @@ function readConfig (
}

config = result.config
basePath = normalizeSlashes(dirname(configFileName))
basePath = dirname(configFileName)
}
}

Expand Down

0 comments on commit 3334305

Please sign in to comment.