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: fix module-root.js edge case where there is a package.json in a subpath #875

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

dword-design
Copy link
Contributor

I had an edge case with the rimraf package where there was a package.json file in the dist/commonjs subpath and so depcheck did not detect the rimraf binary. Fixed the issue in this PR and added a test.

@rumpl
Copy link
Member

rumpl commented Jan 9, 2024

@dword-design could you please rebase your PR and fix the red ci? :)

@dword-design
Copy link
Contributor Author

@rumpl Done. Btw. I actually created a fork of module-root for myself which supports ESM and is unit-tested, but I didn't add it since I was unsure if such forked scoped packages should be added to depcheck.

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

2 participants