Skip to content

Commit

Permalink
add callback to async fs.utimes [closes #18]
Browse files Browse the repository at this point in the history
Merge pull request #18 from FezVrasta/FezVrasta-utimes-callback-node7

Eliminates deprecation warning on Node 7
  • Loading branch information
jlmakes authored Jan 3, 2017
2 parents 778266a + de9b682 commit 7e8e89e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ function createPreprocessor (config, logger) {
var recompileDependants = debounce(function () {
var now = Date.now();
for (var dependant of staleDependants.values()) {
fs.utimes(dependant, now, now);
log.debug('Recompiling dependant %s', dependant);
fs.utimes(dependant, now, now, function() {
log.debug('Recompiling dependant %s', dependant);
});
}
staleDependants.clear();
}, 50);
Expand Down

0 comments on commit 7e8e89e

Please sign in to comment.