Skip to content

Commit

Permalink
Fix findConfigFile in Windows (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxy authored and johnnyreilly committed Aug 17, 2017
1 parent f55d4df commit 69072ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ export function getConfigFile(
* and continuing up the parent directory chain.
*/
function findConfigFile(compiler: typeof typescript, searchPath: string, configFileName: string): string | undefined {
// Remove path.root from configFileName to fix windows specific issue. #604
configFileName = configFileName.substr(path.parse(configFileName).root.length)

while (true) {
const fileName = path.join(searchPath, configFileName);
if (compiler.sys.fileExists(fileName)) {
Expand Down

0 comments on commit 69072ad

Please sign in to comment.