mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
cleanup
This commit is contained in:
parent
7f8b997d5c
commit
5115bafa3b
7
cli.js
7
cli.js
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user