Added tests and refactored code. Fixed a bug.
Improved documentation
I made a few refactors to help with future maintenance and onboarding:
- Reorganized helpers for test fixtures
- Renamed the two types of options
- Reorganized utility functions and wrote unit tests
Bug fixes
There is 1 bug fix:
- Handled multiline comments in
tsconfig.json
(At the moment, both inline and multiline comments are removed so that JSON.parse() doesn't cause a runtime error. In the future, I may look at whether there's an easy way to preserve comments and partially update a JSON.)