Skip to content

Commit

Permalink
feat: use ts provided config parsing utility
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozala committed Oct 9, 2020
1 parent efcdda2 commit 67f66d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/doctor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ export class Doctor {

static fromConfigFile(configPath: string, ts: typeof _ts): Doctor {
const content = fs.readFileSync(configPath).toString();
const { config } = ts.parseConfigFileTextToJson(configPath, content)
const parsed = ts.parseJsonConfigFileContent(
JSON.parse(content),
config,
ts.sys,
path.dirname(configPath)
);
Expand Down

0 comments on commit 67f66d6

Please sign in to comment.