Skip to content

Commit

Permalink
Fix project path resolution on Windows (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljani authored and blakeembrey committed May 24, 2018
1 parent df41bdb commit 45664e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Expand Up @@ -447,10 +447,10 @@ function readConfig (

// Read project configuration when available.
if (!noProject) {
configFileName = project ? resolve(cwd, project) : ts.findConfigFile(cwd, fileExists)
configFileName = project ? resolve(cwd, project) : ts.findConfigFile(normalizeSlashes(cwd), fileExists)

if (configFileName) {
const result = ts.readConfigFile(configFileName, readFile)
const result = ts.readConfigFile(normalizeSlashes(configFileName), readFile)

if (result.error) {
throw new TSError([formatDiagnostic(result.error, cwd, ts, 0)])
Expand Down

0 comments on commit 45664e7

Please sign in to comment.