Open jonaskello opened 9 months ago
I realised that using JSON5 you would still loose the comments when writing the file back. In order to preserve the comments we would probably need to use something like momoa.
https://github.com/hjson allows roundtrip of comments.
I'm running into this issue. Did you find a solution?
@b0o Unfortunately not yet. We ended up just stripping the comments from all tsconfig.json files.
The
tsconfig.json
file supports comments. When I tried to use this package to synctsconfig.json
withpackage.json
I got an error message for existingtsconfig.json
files:I think this is because those files have comments. Perhaps JSON could be parsed with JSON5 instead to allow for this?