I came across an Unexpected token } in JSON at position error using the built-in JSON formatter, without context as to which tsconfig.json was the culprit. Turns out quite a few tsconfigs were badly formatted (having trailing commas in lists).
This PR makes sure that if an error happens, I know where to look, and avoids crashing on the first error it encounters.
I came across an
Unexpected token } in JSON at position
error using the built-in JSON formatter, without context as to whichtsconfig.json
was the culprit. Turns out quite a few tsconfigs were badly formatted (having trailing commas in lists).This PR makes sure that if an error happens, I know where to look, and avoids crashing on the first error it encounters.