Skip to content

Commit

Permalink
Merge pull request apidoc#458 from hoserdude/master
Browse files Browse the repository at this point in the history
Allow for single source configuration
rottmann committed Apr 20, 2016
2 parents 5864c47 + fdd663f commit 11a925d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/package_info.js
Original file line number Diff line number Diff line change
@@ -128,8 +128,15 @@ PackageInfo.prototype._getHeaderFooter = function(json) {
PackageInfo.prototype._resolveSrcPath = function() {
var dir = './';

if (app.options.src instanceof Array && app.options.src.length === 1)
dir = app.options.src[0];
if (app.options.src instanceof Array) {
if (app.options.src.length === 1) {
dir = app.options.src[0];
}
} else {
if (app.options.src) {
dir = app.options.src;
}
}

return dir;
};

0 comments on commit 11a925d

Please sign in to comment.