loadTSConfig assume valid JSON
moltar opened this issue · comments
Describe the bug
The loadTSConfig
function assumes tsconfig.json
is JSON, however, tsconfig.json
officially is a JSONC file, which allows for comments.
From: https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html#tsconfig
The TSConfig is a jsonc file ...
Lines 18 to 45 in 7aec22e
Fails with:
Warning: Could not parse tsconfig.json for .... Falling back to compiled source.
To Reproduce
- Add a comment to
tsconfig.json
- Run a command
Expected behavior
Allow comments.
Screenshots
N/A