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

fix: Handle array extends in tsconfig #855

Merged
merged 1 commit into from Jan 12, 2024
Merged

Conversation

alexeyr-ci
Copy link
Contributor

Fix #854

Copy link
Collaborator

@znarf znarf left a 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?

@@ -22,7 +22,11 @@ export default function tsconfigParser(filePath, deps) {
});
}
if (tsconfigJson.extends) {
foundDeps.push(tsconfigJson.extends);
if Array.isArray(tsconfigJson.extends) {
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

@alexeyr-ci
Copy link
Contributor Author

@znarf Would you prefer a separate test or just to add another file to the tsconfig test (I believe that should work)?

@znarf
Copy link
Collaborator

znarf commented Nov 23, 2023

@alexeyr-ci doesn't matter, whatever proves that this is doing the job. Adding a test to the tsconfig test file sounds good.

@alexeyr-ci
Copy link
Contributor Author

@znarf This should work, I believe, and CI passes.

Copy link
Collaborator

@znarf znarf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@znarf znarf added the ready label Jan 11, 2024
@rumpl
Copy link
Member

rumpl commented Jan 11, 2024

Unfortunately there are conflicts now, @alexeyr-ci would you be so kind and rebase this so I can merge?

@alexeyr-ci
Copy link
Contributor Author

@rumpl Rebased.

@rumpl rumpl merged commit e03dbd0 into depcheck:main Jan 12, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle array extends in tsconfig
3 participants