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
fix: Handle array extends in tsconfig #855
Conversation
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.
Syntax error.
Could you also add a test to cover that?
src/parser/tsconfig.js
Outdated
@@ -22,7 +22,11 @@ export default function tsconfigParser(filePath, deps) { | |||
}); | |||
} | |||
if (tsconfigJson.extends) { | |||
foundDeps.push(tsconfigJson.extends); | |||
if Array.isArray(tsconfigJson.extends) { |
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.
It's not valid JS and tests are failing.
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.
Yes, sorry. Shouldn't have tried to just edit from Github.
@znarf Would you prefer a separate test or just to add another file to the tsconfig test (I believe that should work)? |
@alexeyr-ci doesn't matter, whatever proves that this is doing the job. Adding a test to the tsconfig test file sounds good. |
14d41f0
to
ea7e197
Compare
@znarf This should work, I believe, and CI passes. |
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.
Looks good!
Unfortunately there are conflicts now, @alexeyr-ci would you be so kind and rebase this so I can merge? |
@rumpl Rebased. |
Fix #854