Skip to content

Commit 6b14e31

Browse files
committed
Ignore impossible to test branch
1 parent b5529fd commit 6b14e31

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/index.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,15 @@ function resolveConfig(config?: string | ts.CompilerOptions, cwd?: string): ts.C
107107
configPath = ts.findConfigFile(cwd, ts.sys.fileExists)
108108
}
109109

110+
/* istanbul ignore else */
110111
if (!configPath) {
111112
throw new Error("Could not find a valid 'tsconfig.json'")
112-
}
113-
114-
const configFile = ts.readConfigFile(configPath, ts.sys.readFile)
115-
const { options } = ts.parseJsonConfigFileContent(configFile.config, ts.sys, cwd)
113+
} else {
114+
const configFile = ts.readConfigFile(configPath, ts.sys.readFile)
115+
const { options } = ts.parseJsonConfigFileContent(configFile.config, ts.sys, cwd)
116116

117-
return options
117+
return options
118+
}
118119
}
119120

120121
if (typeof config === 'string') {

0 commit comments

Comments
 (0)