diff --git a/bin/6to5/file.js b/bin/6to5/file.js index 67db8e8264..a118389437 100644 --- a/bin/6to5/file.js +++ b/bin/6to5/file.js @@ -117,8 +117,10 @@ module.exports = function (commander, filenames) { persistent: true, ignoreInitial: true }).on("all", function (type, filename) { - console.log(type, filename); - walk(); + if (type === "add" || type === "change" || type === "unlink" ) { + console.log(type, filename); + walk(); + } }); } };