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)) } }