From 5e67dfbd9e8ace962cf02ac28539170eda7d685f Mon Sep 17 00:00:00 2001 From: Elan Shanker Date: Mon, 8 Dec 2014 17:55:54 -0500 Subject: [PATCH] Ensure only file events are acted upon --- bin/6to5/file.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); + } }); } };