-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for tsconfig extends #37
Conversation
Looks good! It's late here so I'll take a look tomorrow. Thanks :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good! Just some code style changes, thanks :)
PS. Cool that TS does some of the path wrangling. Was going to suggest using the lighter-weight JSON5 but I guess this is a good use case overall.
OK, linting now added so you'll want to merge and run |
4564abb
to
1844878
Compare
Updated to address linting issues |
No idea what these errors are about. Any ideas? EDIT: seems to be a build pipeline permissions thing. I ran the checks locally and it's all good, so going to merge 👍 |
This uses the native typescript utilities for reading and parsing a config file, which means that comments and trailing commas are supported, as well as extending from another config.
I needed to break out a helper function to log messages, since the parsing is slightly different between package.json and config files now, but they can share the same error handling, I think.
I also created a few basic tests for loading config files with comments and commas, as well as extending from other configs. Let me know if you'd like to see more.
Closes #28
Closes #30