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 resolver on packages with @types suffix #53

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

Olsworn
Copy link
Contributor

@Olsworn Olsworn commented Jan 8, 2024

Some npm package names starting with the prefix "@types" but not actual "@types/" packages would cause the resolver to loop endlessly inside resolve.resolveWalkParents due to a failed check in resolve.isNpmDependency.

I found out about this problem when trying to import any package from "@typescript-eslint/..." in one of my files and then running gazelle.
The problem should arise with any package starting with "@types" such as any "@typescript/..." package.

@ewianda ewianda merged commit 756e6d1 into benchsci:main Jan 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants