pull/2561/head
Jérémy Rialland 2023-08-01 17:40:55 +02:00 committed by Jérémy Rialland
parent ca785ed7d9
commit b73a053600
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ dotenv.config()
// Extrait la liste des liens référencés dans la base de code
const { stdout, stderr } = await promisify(exec)(
"rg -oNI -e 'https?://([\\w/_\\-?=%+@]|\\.\\w)+' -g '*.{yaml,ts,tsx,js,jsx}' -g '!*-en.yaml' ./ | sort | uniq",
"rg -oNI -e 'https?://([\\w/_\\-?=%+@]|\\.\\w)+' -g '*.{yaml,ts,tsx,js,jsx}' -g '!*-en.yaml' ./ | sort | uniq"
)
if (stderr) {
throw new Error(stderr)
@ -74,7 +74,7 @@ function sleep(ms) {
}
await Promise.allSettled(
Array.from({ length: simultaneousItems }).map(processNextQueueItem),
Array.from({ length: simultaneousItems }).map(processNextQueueItem)
)
console.log('Terminé')
@ -104,7 +104,7 @@ if (detectedErrors.length > 0) {
'Liens invalides :' +
detectedErrors
.map(({ status, link }) => `\n- [${status}] ${link}`)
.join(''),
.join('')
)
}
}