From ef9660119f88695455ed302a333f928e47d39fda Mon Sep 17 00:00:00 2001 From: Gergely Aradszki Date: Sun, 17 Feb 2013 14:54:09 +0100 Subject: [PATCH] Merge source includes with command line arguments *before* checking for README.md and package.json. Allows to set these in configs source.includes. --- jsdoc.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jsdoc.js b/jsdoc.js index 553297e1..480b3f88 100644 --- a/jsdoc.js +++ b/jsdoc.js @@ -179,6 +179,10 @@ function main() { if (env.conf.plugins) { plugins.installPlugins(env.conf.plugins, app.jsdoc.parser); } + + if (env.conf.source && env.conf.source.include) { + env.opts._ = (env.opts._ || []).concat(env.conf.source.include); + } // any source file named package.json or README.md is treated special for (i = 0, l = env.opts._.length; i < l; i++ ) { @@ -193,10 +197,6 @@ function main() { } } - if (env.conf.source && env.conf.source.include) { - env.opts._ = (env.opts._ || []).concat(env.conf.source.include); - } - if (env.conf.source && env.opts._.length > 0) { // are there any files to scan and parse? filter = new Filter(env.conf.source);