jonschlinkert / load-plugins

Thin wrapper around resolve-dep for loading plugins from node_modules or local directories. Like load-gulp-plugins, match dep, etc, but works for gulp, grunt, assemble, verb or anything other task runner or build system that uses plugins.
https://github.com/jonschlinkert
MIT License
22 stars 1 forks source link

Fix to ensure plugin is correctly renamed when cwd in not project root. #12

Closed jaridmargolin closed 7 years ago

jaridmargolin commented 7 years ago

Currently load-plugins assumes the cwd is the project root. This PR fixes the behavior by ensuring the correct segment is utilized.

jonschlinkert commented 7 years ago

@jaridmargolin I added you as a collaborator here and owner on npm. feel free to merge, publish and git tag. Or I can do it as soon as I have a chance.

thanks!

jaridmargolin commented 7 years ago

👍 merged, bumped, tagged, published. thanks @jonschlinkert