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 tsconfig.json file supports comments. When I tried to use this package to sync tsconfig.json with package.json I got an error message for existing tsconfig.json files:
❯ p meta-updater
ERROR: Error while processing /xxx/tsconfig.json: Expected property name or '}' in JSON at position 4
ERROR: Error while processing /xxx/tsconfig.json: Expected property name or '}' in JSON
I think this is because those files have comments. Perhaps JSON could be parsed with JSON5 instead to allow for this?
The text was updated successfully, but these errors were encountered:
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.
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?
The text was updated successfully, but these errors were encountered: