Skip to content

Commit 67f66d6

Browse files
committed
feat: use ts provided config parsing utility
1 parent efcdda2 commit 67f66d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doctor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ export class Doctor {
2020

2121
static fromConfigFile(configPath: string, ts: typeof _ts): Doctor {
2222
const content = fs.readFileSync(configPath).toString();
23+
const { config } = ts.parseConfigFileTextToJson(configPath, content)
2324
const parsed = ts.parseJsonConfigFileContent(
24-
JSON.parse(content),
25+
config,
2526
ts.sys,
2627
path.dirname(configPath)
2728
);

0 commit comments

Comments
 (0)