pnpm / meta-updater

MIT License
55 stars 6 forks source link

Fix crash on first error in formatPlugin without stack trace #9

Closed mackermans closed 1 year ago

mackermans commented 1 year ago

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.

mackermans commented 1 year ago

@zkochan Could this be merged? Any blockers?