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

Find resolvers locally when Bower is installed globally #2163

Closed
wants to merge 1 commit into from

Conversation

wrumsby
Copy link

@wrumsby wrumsby commented Feb 3, 2016

PoC implementation for review and feedback.

Fixes #1919

PoC implementation for review and feedback.

Fixes bower#1919
@sheerun
Copy link
Contributor

sheerun commented Feb 3, 2016

we need to use config.cwd instead ./

try {
resolver = pluginResolverFactory(require(resolverName), options);
} catch (e) {
if (e.code === 'MODULE_NOT_FOUND') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-throw otherwise?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also maybe we should check for the name of module that failed to load here

@wrumsby
Copy link
Author

wrumsby commented Mar 2, 2016

Sorry, I got distracted - will try to get back to this over the next few days.

@sheerun
Copy link
Contributor

sheerun commented Apr 1, 2016

Fixed with f4cb047 and will be released in bower 1.7.8

@sheerun sheerun closed this Apr 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants