Skip to content

Commit

Permalink
fix(markdown-link-check): reporters module not found error
Browse files Browse the repository at this point in the history
Fixes #368
  • Loading branch information
tcort committed Nov 5, 2024
1 parent e7c73af commit c6bd140
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions markdown-link-check
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const pkg = require('./package.json');
const { Command } = require('commander');
const program = new Command();
const { ProxyAgent } = require('proxy-agent');
const reporters = require('./reporters');
const reporters = require('./reporters/index.js');

class Input {
constructor(filenameForOutput, stream, opts) {
Expand Down Expand Up @@ -49,7 +49,7 @@ function loadAllMarkdownFiles(rootFolder = '.') {
}

function commaSeparatedReportersList(value) {
return value.split(',').map((reporter) => reporters[reporter] ?? reporters.eefault);
return value.split(',').map((reporter) => reporters[reporter] ?? reporters.default);
}

function getInputs() {
Expand Down
4 changes: 2 additions & 2 deletions reporters/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

module.exports = {
default: require('./default'),
junit: require('./junit'),
default: require('./default.js'),
junit: require('./junit.js'),
};

0 comments on commit c6bd140

Please sign in to comment.