Skip to content
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

feat: add support for tsconfig.json files that have an extends property #1361

Closed
wants to merge 8 commits into from

Conversation

luchn49
Copy link

@luchn49 luchn49 commented Feb 13, 2023

Follow up the PR #1313


Description copied from #1313:

What does the PR do?

Fixes issue #1283.

Following what was suggested in the issue to mimic what ts-node is doing to resolve the tsconfig.json here.
Their method is quite a bit more complex since they need to resolve custom ts-node compiler options.

For our purposes, reading the config file using ts.readConfigFile and then parsing it with ts.parseJsonConfigFileContent produces the expected tsconfig.json even when it extends another one.

Tests

Added a test to confirm that danger resolves extended tsconfigs.

@luchn49 luchn49 marked this pull request as draft February 13, 2023 03:00
@luchn49 luchn49 closed this Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant