Skip to content

Commit

Permalink
Ignore impossible to test branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dhkatz committed Jul 14, 2021
1 parent b5529fd commit 6b14e31
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,15 @@ function resolveConfig(config?: string | ts.CompilerOptions, cwd?: string): ts.C
configPath = ts.findConfigFile(cwd, ts.sys.fileExists)
}

/* istanbul ignore else */
if (!configPath) {
throw new Error("Could not find a valid 'tsconfig.json'")
}

const configFile = ts.readConfigFile(configPath, ts.sys.readFile)
const { options } = ts.parseJsonConfigFileContent(configFile.config, ts.sys, cwd)
} else {
const configFile = ts.readConfigFile(configPath, ts.sys.readFile)
const { options } = ts.parseJsonConfigFileContent(configFile.config, ts.sys, cwd)

return options
return options
}
}

if (typeof config === 'string') {
Expand Down

0 comments on commit 6b14e31

Please sign in to comment.