Uh oh!
There was an error while loading. Please reload this page.
Use TypeScript parser to read tsconfig.json - #5532
Conversation
This isn't too big of a deal when using source control -- you could only stage the lines you care about. If you can figure something out, please send PR. |
ianschmitz
commented
Oct 23, 2018
@Timer, @brunolemos. Just a heads up that we're missing part of how TypeScript reads in Let me know if you want me to make a PR to add that step! |
ianschmitz
commented
Oct 23, 2018
Here's a reference from ts-jest as an example: https://github.com/kulshekhar/ts-jest/blob/13cc4c9b0136030d0aa52dcbe3efb65c48012d70/src/config/config-set.ts#L654 |
Timer
commented
Oct 23, 2018
Sure, send a PR please. |
We have to read
tsconfig.jsonusing the ts parser otherwise it will fail, because it may contain things like comments and trailing comma.One remaining annoyance is that when overriding the json it is removing all comments from the file.