Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #13 from Financial-Times/handle-group-filenames
Browse files Browse the repository at this point in the history
Handle module names with a group
  • Loading branch information
ironsidevsquincy authored Sep 14, 2016
2 parents 3aeb094 + 19b04fa commit 7d7adaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
Expand Down

0 comments on commit 7d7adaa

Please sign in to comment.