fix: remove JSON syntax error and regenerate tsconfig files - #3566
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3566 +/- ##
==========================================
- Coverage 93.88% 90.83% -3.06%
==========================================
Files 255 77 -178
Lines 7757 1670 -6087
Branches 1612 338 -1274
==========================================
- Hits 7283 1517 -5766
+ Misses 474 153 -321
|
dyladan
left a comment
There was a problem hiding this comment.
Allow JS and include generated are definitely needed for the proto exporter base. it looks like the new autogeneration script overwrites these options assuming they are the same everywhere.
Seems there is a significant gap in tests because CI is green... |
Yeah I'm looking into it now. I found the problem which causes the key to be incorrectly overwritten. In https://github.com/open-telemetry/opentelemetry-js/blob/main/scripts/update-ts-configs.js#L249-L258 the JSON is failed to read because there is a trailing |
I think the tests are green because this is only happening in the |
|
This is no longer a |
|
I went ahead and pushed the fixes so that we can merge and release today |
not related to this pr but I think we should test |
|
We should be able to support merging the generated tsconfig with the manually written one: https://github.com/open-telemetry/opentelemetry-js/blob/main/scripts/update-ts-configs.js#L39. The problem here is caused by the silent suppression of parsing error: https://github.com/open-telemetry/opentelemetry-js/blob/main/scripts/update-ts-configs.js#L254. Maybe we should abort when failed to parse a tsconfig.json. |
Short description of the changes
Regenerated some tsconfig.json file because they are shown as modified by git after
npm install.Refs: #3208