Skip to content

Commit

Permalink
Correctly resolve relative configFile paths (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
loilo authored and johnnyreilly committed Sep 5, 2017
1 parent 6704717 commit 7b8eabe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function findConfigFile(compiler: typeof typescript, requestDirPath: string, con
// We define a relative path as: starts with
// one or two dots + a common directory delimiter
if (configFile.match(/^\.\.?(\/|\\)/)) {
const resolvedPath = path.resolve(configFile);
const resolvedPath = path.resolve(requestDirPath, configFile);
return compiler.sys.fileExists(resolvedPath)
? resolvedPath
: undefined;
Expand Down

0 comments on commit 7b8eabe

Please sign in to comment.