Skip to content

Commit

Permalink
fix: record output files for process js task
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Mar 3, 2021
1 parent 824488f commit e7951bd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cli/lib/tasks/process-js-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,20 @@ class ProcessJsTask extends IncrementalFileTask {
this.createHooks();
}

/**
* List of files that this task generates
*
* Each path will passed to {@link #ChangeManager#monitorOutputPath|ChangeManager.monitorOutputPath}
* to determine if the output files of a task have changed.
*
* @return {Array.<String>}
*/
get incrementalOutputs() {
const outputFiles = [];
Object.values(this.jsFiles).forEach(info => outputFiles.push(info.dest));
return outputFiles;
}

/**
* Does a full task run, processing every input file.
*
Expand Down

0 comments on commit e7951bd

Please sign in to comment.