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

Improve File Extension Logic #811

Merged
merged 1 commit into from
Apr 9, 2023

Conversation

graphemecluster
Copy link
Contributor

  • Add alternative LICENSE and README names
  • Add mjs, cjs, mts, cts
  • Undetect filenames without extension, e.g. py (except LICENSE and README (there should probably be more))
  • Lookup level2ExtensionNames first even for filenames with more than 2 dots, e.g. foo.bar.spec.js
  • Refactor to remove duplicated logic

@bummoblizard
Copy link
Member

Thanks for cleaning up the code!

@bummoblizard bummoblizard merged commit 71bbac8 into thebaselab:main Apr 9, 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.

2 participants