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

Support module resolution for directories #28

Merged
merged 1 commit into from
Jun 28, 2022
Merged

Support module resolution for directories #28

merged 1 commit into from
Jun 28, 2022

Conversation

tschaub
Copy link
Owner

@tschaub tschaub commented Jun 28, 2022

This makes it so esMain works in cases where node dir runs node dir/index.js or node dir/mod.js (assuming dir has a package.json with main set to mod.js).

Fixes #20.
Fixes #22.

@tschaub tschaub merged commit 31df7b4 into main Jun 28, 2022
@tschaub tschaub deleted the test-resolve branch June 28, 2022 17:45
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.

Does not support index.js resolve Does not support main module resolve
1 participant