Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hegemonic committed Jul 11, 2017
1 parent 7f8b997 commit 5115baf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,9 @@ function resolvePluginPaths(paths) {
var basename = path.basename(plugin);
var dirname = path.dirname(plugin);

// support plugin specification as an installed package, which
// then may not have a directory component, resulting in
// path.dirname() to return '.', which, if passed on, would
// result in different path resolution semantics
// support plugin specification as an installed package, which then may not have a directory
// component, resulting in `path.dirname()` to return `.`, which, if passed on, would result
// in different path resolution semantics
if (dirname.indexOf('.') === 0 && plugin.indexOf('.') !== 0) {
dirname = undefined;
}
Expand Down

0 comments on commit 5115baf

Please sign in to comment.