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 the case where the entry file is in a subdirectory #10

Merged
merged 4 commits into from
Feb 7, 2020

Conversation

Vehmloewff
Copy link
Contributor

@Vehmloewff Vehmloewff commented Jan 2, 2020

Fixes #7

Uses the find-up package to find the nearest package.json from moduleObj.filename. If none is found, it will fallback on moduleObj.filename.


IssueHunt Summary

Referenced issues

This pull request has been submitted to:


IssueHunt has been backed by the following sponsors. Become a sponsor

@Vehmloewff
Copy link
Contributor Author

ping :)

@sindresorhus sindresorhus changed the title Watch from root Fix the case where the entry file is in a subdirectory Feb 7, 2020
@sindresorhus sindresorhus merged commit c1be741 into sindresorhus:master Feb 7, 2020
@sindresorhus
Copy link
Owner

Thanks :)

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.

Doesn't work when main entry file is in a sub-folder
2 participants