Skip to content
This repository has been archived by the owner on Dec 1, 2019. It is now read-only.

Commit

Permalink
fix: pass Unix-style path to config parser (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
timothykang authored and s-panferov committed May 24, 2018
1 parent ed5d1a3 commit c006193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/instance.ts
Expand Up @@ -309,7 +309,7 @@ export function readConfigFile(
): Configs {
let configFilePath: string
if (query.configFileName && query.configFileName.match(/\.json$/)) {
configFilePath = absolutize(query.configFileName, context)
configFilePath = toUnix(absolutize(query.configFileName, context))
} else {
configFilePath = tsImpl.findConfigFile(context, tsImpl.sys.fileExists)
}
Expand All @@ -318,7 +318,7 @@ export function readConfigFile(

if (!configFilePath || query.configFileContent) {
return {
configFilePath: configFilePath || path.join(context, 'tsconfig.json'),
configFilePath: configFilePath || toUnix(path.join(context, 'tsconfig.json')),
compilerConfig: tsImpl.parseJsonConfigFileContent(
query.configFileContent || {},
tsImpl.sys,
Expand Down

0 comments on commit c006193

Please sign in to comment.