You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem with this code is that TypeScript allows tsconfig.json to have comments, trailing commas, and (probably) some other deviations from the JSON standard
I want to propose changing this code snippet to use the TypeScript native readConfigFile function instead of require, so it will work more reliably:
Issue description or question
In the section on how to set up TypeScript
paths
under NodeJS environment for non-Jest test runner, there is a code example with requiringtsconfig.json
The problem with this code is that TypeScript allows
tsconfig.json
to have comments, trailing commas, and (probably) some other deviations from the JSON standardI want to propose changing this code snippet to use the TypeScript native
readConfigFile
function instead ofrequire
, so it will work more reliably:This change allowed me to mitigate the crash on Wallaby startup because our
tsconfig.json
had commentsThe text was updated successfully, but these errors were encountered: