onerepo icon indicating copy to clipboard operation
onerepo copied to clipboard

Treat `tsconfig.json` as JSONC

Open alecmev opened this issue 4 months ago • 0 comments

What version of oneRepo are you using?

1.1.0

Environment info

Not relevant.

Command

one tsc --use-project-references

What did you expect to happen?

Comments preserved.

What actually happened?

Comments are stripped if project references need an update, because it's serialized via JSON.stringify:

https://github.com/paularmstrong/onerepo/blob/be882795966edd469524734de8140be6fc111685/plugins/typescript/src/commands/typescript.ts#L64

Participation

  • [ ] I am willing to submit a pull request for this issue.

alecmev avatar Mar 30 '24 22:03 alecmev