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

Commit c006193

Browse files
timothykangs-panferov
authored andcommitted
fix: pass Unix-style path to config parser (#581)
1 parent ed5d1a3 commit c006193

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/instance.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export function readConfigFile(
309309
): Configs {
310310
let configFilePath: string
311311
if (query.configFileName && query.configFileName.match(/\.json$/)) {
312-
configFilePath = absolutize(query.configFileName, context)
312+
configFilePath = toUnix(absolutize(query.configFileName, context))
313313
} else {
314314
configFilePath = tsImpl.findConfigFile(context, tsImpl.sys.fileExists)
315315
}
@@ -318,7 +318,7 @@ export function readConfigFile(
318318

319319
if (!configFilePath || query.configFileContent) {
320320
return {
321-
configFilePath: configFilePath || path.join(context, 'tsconfig.json'),
321+
configFilePath: configFilePath || toUnix(path.join(context, 'tsconfig.json')),
322322
compilerConfig: tsImpl.parseJsonConfigFileContent(
323323
query.configFileContent || {},
324324
tsImpl.sys,

0 commit comments

Comments
 (0)