File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -442,15 +442,17 @@ function readConfig (
442
442
noProject ?: boolean | null
443
443
) {
444
444
let config = { compilerOptions : { } as any }
445
- let basePath = cwd
445
+ let basePath = normalizeSlashes ( cwd )
446
446
let configFileName : string | undefined = undefined
447
447
448
448
// Read project configuration when available.
449
449
if ( ! noProject ) {
450
- configFileName = project ? resolve ( cwd , project ) : ts . findConfigFile ( normalizeSlashes ( cwd ) , fileExists )
450
+ configFileName = project
451
+ ? normalizeSlashes ( resolve ( cwd , project ) )
452
+ : ts . findConfigFile ( normalizeSlashes ( cwd ) , fileExists )
451
453
452
454
if ( configFileName ) {
453
- const result = ts . readConfigFile ( normalizeSlashes ( configFileName ) , readFile )
455
+ const result = ts . readConfigFile ( configFileName , readFile )
454
456
455
457
if ( result . error ) {
456
458
throw new TSError ( [ formatDiagnostic ( result . error , cwd , ts , 0 ) ] )
You can’t perform that action at this time.
0 commit comments