Skip to content

Commit

Permalink
Adapt JSDoc for included/excludedDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kristian committed Dec 16, 2019
1 parent 7127e93 commit 8f29205
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ module.exports = {
* @param {string} parameters.destPath Target path
* @param {boolean} [parameters.cleanDest=false] Decides whether project should clean the target path before build
* @param {boolean} [parameters.buildDependencies=false] Decides whether project dependencies are built as well
* @param {Array} [parameters.includedDependencies=[]] List of build dependencies to be included if buildDependencies is true
* @param {Array} [parameters.excludedDependencies=[]] List of build dependencies to be excluded if buildDependencies is true. If the wildcard '*' is provided, only the included dependencies will be built.
* @param {Array.<string|RegExp>} [parameters.includedDependencies=[]] List of build dependencies to be included if buildDependencies is true
* @param {Array.<string|RegExp>} [parameters.excludedDependencies=[]] List of build dependencies to be excluded if buildDependencies is true. If the wildcard '*' is provided, only the included dependencies will be built.
* @param {boolean} [parameters.dev=false] Decides whether a development build should be activated (skips non-essential and time-intensive tasks)
* @param {boolean} [parameters.selfContained=false] Flag to activate self contained build
* @param {boolean} [parameters.jsdoc=false] Flag to activate JSDoc build
Expand Down Expand Up @@ -263,7 +263,7 @@ module.exports = {
const projectCountMarker = {};
function projectCount(project, count = 0) {
if (buildDependencies) {
count = (project.dependencies || []).filter(projectFilter).reduce((depCount, depProject) => {
count = project.dependencies.filter(projectFilter).reduce((depCount, depProject) => {
return projectCount(depProject, depCount);
}, count);
}
Expand All @@ -282,7 +282,7 @@ module.exports = {
// Build dependencies in sequence as it is far easier to detect issues and reduces
// side effects or other issues such as too many open files
if (buildDependencies) {
depPromise = (project.dependencies || []).filter(projectFilter).reduce(function(p, depProject) {
depPromise = project.dependencies.filter(projectFilter).reduce(function(p, depProject) {
return p.then(() => buildProject(depProject));
}, Promise.resolve());
} else {
Expand Down

0 comments on commit 8f29205

Please sign in to comment.