Skip to content

Commit f9ddaa3

Browse files
committed
Fixing the case where a file can have multiple exports
1 parent 3ef974b commit f9ddaa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ exports.main = (files, argv = {}) => {
6363

6464
if (argv.d) {
6565
fs.writeFileSync(
66-
path.join(argv.d, `${path.parse(files[index]).name}.json`),
66+
path.join(argv.d, `${displayName || `file_${index}`}.json`),
6767
JSON.stringify(acc[displayName], null, argv.minified ? undefined : 4)
6868
);
6969
}

0 commit comments

Comments
 (0)