Skip to content

Commit c6bd140

Browse files
committed
fix(markdown-link-check): reporters module not found error
Fixes #368
1 parent e7c73af commit c6bd140

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

markdown-link-check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const pkg = require('./package.json');
1212
const { Command } = require('commander');
1313
const program = new Command();
1414
const { ProxyAgent } = require('proxy-agent');
15-
const reporters = require('./reporters');
15+
const reporters = require('./reporters/index.js');
1616

1717
class Input {
1818
constructor(filenameForOutput, stream, opts) {
@@ -49,7 +49,7 @@ function loadAllMarkdownFiles(rootFolder = '.') {
4949
}
5050

5151
function commaSeparatedReportersList(value) {
52-
return value.split(',').map((reporter) => reporters[reporter] ?? reporters.eefault);
52+
return value.split(',').map((reporter) => reporters[reporter] ?? reporters.default);
5353
}
5454

5555
function getInputs() {

reporters/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

33
module.exports = {
4-
default: require('./default'),
5-
junit: require('./junit'),
4+
default: require('./default.js'),
5+
junit: require('./junit.js'),
66
};

0 commit comments

Comments
 (0)