mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
14 lines
367 B
JavaScript
14 lines
367 B
JavaScript
import process from 'node:process'
|
|
import { checkSiteLinks } from './site-build/links.ts'
|
|
|
|
try {
|
|
const report = await checkSiteLinks(`${process.cwd()}/docs`)
|
|
console.log(JSON.stringify(report, null, 2))
|
|
if (report.issues.length)
|
|
process.exitCode = 1
|
|
}
|
|
catch (error) {
|
|
console.error(error instanceof Error ? error.message : error)
|
|
process.exitCode = 1
|
|
}
|