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

Add an option to allow certain modules to search upwards #2

Open
sindresorhus opened this issue May 24, 2018 · 1 comment
Open

Add an option to allow certain modules to search upwards #2

sindresorhus opened this issue May 24, 2018 · 1 comment
Labels
💵 Funded on Issuehunt This issue has been funded on Issuehunt enhancement New feature or request help wanted Extra attention is needed

Comments

@sindresorhus
Copy link
Owner

sindresorhus commented May 24, 2018

Issuehunt badges

I had the need to allow a specific module to require upwards, so I added a private option _allowedMethods in 64ac0d0. I made it private because I'm not totally happy with it. It only works for top-level imports. So you can allow require('a') to be searched upwards by including a in the option, but if a imports a module name b, there's no way to allow b specifically, other than allowing any module from a.

Context: atomiclabs/hyperdex@d54a47c

There is a $40.00 open bounty on this issue. Add more on Issuehunt.

@sindresorhus sindresorhus added enhancement New feature or request help wanted Extra attention is needed labels May 24, 2018
@sindresorhus sindresorhus changed the title Add an option to allow certain modules to search upwards. Add an option to allow certain modules to search upwards May 24, 2018
@IssueHuntBot
Copy link

@issuehuntfest has funded $40.00 to this issue. See it on IssueHunt

@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💵 Funded on Issuehunt This issue has been funded on Issuehunt enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants