From 19b04fa34d62140a54cba0cd57343d8904f9519a Mon Sep 17 00:00:00 2001 From: Darren Hurley Date: Wed, 14 Sep 2016 09:37:20 +0100 Subject: [PATCH] Handle module names with a group --- src/reporter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reporter.js b/src/reporter.js index e374f0d..83794c6 100644 --- a/src/reporter.js +++ b/src/reporter.js @@ -25,7 +25,7 @@ module.exports = { for (const moduleName in modules) { if (modules.hasOwnProperty(moduleName)) { - const file = `${outputFolder}${prefix}${moduleName}.json`; + const file = `${outputFolder}${prefix}${moduleName.replace('/', '-')}.json`; fs.writeFile(file, JSON.stringify(results, null, 4)) } }