Skip to content

Commit

Permalink
Move files into src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
WillGibson committed Feb 26, 2025
1 parent 9b0e523 commit b538a9b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
9 changes: 9 additions & 0 deletions markdown-link-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env node

'use strict';

const { main } = require('./src/markdown-link-check');

(async() => {
await main();
})();
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "3.13.6",
"description": "checks the all of the hyperlinks in a markdown text to determine if they are alive or dead",
"bin": {
"markdown-link-check": "./markdown-link-check.js"
"markdown-link-check": "markdown-link-check"
},
"main": "index.js",
"main": "src/index.js",
"scripts": {
"pretest": "eslint .",
"test": "mocha -R spec --exit"
Expand Down
File renamed without changes.
8 changes: 3 additions & 5 deletions markdown-link-check.js → src/markdown-link-check.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#!/usr/bin/env node

'use strict';

let chalk;
const fs = require('fs');
const { promisify } = require('util');
const markdownLinkCheck = promisify(require('.'));
const markdownLinkCheck = promisify(require('./index'));
const needle = require('needle');
const path = require('path');
const pkg = require('./package.json');
const pkg = require('../package.json');
const { Command } = require('commander');
const program = new Command();
const { ProxyAgent } = require('proxy-agent');
Expand Down Expand Up @@ -324,4 +322,4 @@ async function main() {
process.exit(isOk ? 0 : 1);
}

main();
module.exports = { main };
4 changes: 0 additions & 4 deletions stryker.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
"reports"
],
"_mutate_comment": "Had to rename markdown-link-check, some work to do on that probably",
"mutate": [
"index.js",
"markdown-link-check.js"
],
"packageManager": "npm",
"reporters": [
"html",
Expand Down

0 comments on commit b538a9b

Please # to comment.