From 294ce791996097bf7e8811e2d4fd0fbfca544bf3 Mon Sep 17 00:00:00 2001 From: Torres-ssf Date: Thu, 28 Nov 2024 11:16:45 -0300 Subject: [PATCH] make lint-md-links script use markdown-link-check --- scripts/lint-md-links.ts | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/scripts/lint-md-links.ts b/scripts/lint-md-links.ts index 0525ffec2a..3ce02b55c4 100644 --- a/scripts/lint-md-links.ts +++ b/scripts/lint-md-links.ts @@ -6,19 +6,15 @@ import { globSync } from 'glob'; const mdFiles = globSync('**/*.md', { ignore: [ '**/node_modules/**', - 'apps/docs/src/api/**', // generated api - '**/CHANGELOG.md', - 'apps/demo-nextjs/**', + 'apps/demo/**', 'apps/demo-react-cra/**', - 'apps/demo-react-vite/**', - 'templates/**', - 'apps/demo-wallet-sdk-react/**', - 'apps/create-fuels-counter-guide/**', - 'internal/forc/sway-repo/**', - 'internal/fuel-core/fuel-core-repo/**', - 'apps/docs-api/**', + 'apps/demo-nextjs/**', + '.changeset/**', + '**/CHANGELOG.md', ], }); - execSync(`pnpm textlint ${mdFiles.join(' ')} --debug`, { stdio: 'inherit' }); + execSync(`pnpm markdown-link-check -c ./link-check.config.json ${mdFiles.join(' ')}`, { + stdio: 'inherit', + }); })();