diff --git a/docs/package.json b/docs/package.json index 76ede228..65cc0fb0 100644 --- a/docs/package.json +++ b/docs/package.json @@ -5,7 +5,7 @@ "lint": "eslint pages src", "pretest": "npm run sync", "test": "node test/urls.js", - "test-links": "blc -ergo http://127.0.01:3000/css", + "check-links": "script/check-links -rv http://localhost:3000/css", "sync": "script/sync", "watch": "script/sync --watch", "dev": "next", diff --git a/docs/script/check-links b/docs/script/check-links index 7be56c95..1d198f8e 100755 --- a/docs/script/check-links +++ b/docs/script/check-links @@ -2,6 +2,7 @@ const spinner = require('char-spinner') const {gray, green, yellow, red, bold} = require('colorette') const {SiteChecker} = require('broken-link-checker') + const yargs = require('yargs') .option('filter-level', {type: Number, alias: 'L', default: 3}) .option('recursive', {type: Boolean, alias: 'r'})