From 6558a85a5611768f31857f2e733e6f888cea225d Mon Sep 17 00:00:00 2001 From: Artem Dontsov Date: Mon, 1 Jun 2020 17:32:58 +0700 Subject: [PATCH] fix: filenames emit copy of array --- lib/recipes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/recipes.js b/lib/recipes.js index 4ee1223e..6eb8b2fc 100644 --- a/lib/recipes.js +++ b/lib/recipes.js @@ -320,7 +320,7 @@ module.exports = function recipes(proto) { }); }); - self.emit('filenames', filenames); + self.emit('filenames', [...filenames]); next(null, filenames); },