build(workspace): [ENG-01] pin reproducible Node and npm toolchain

This commit is contained in:
Harvey Zhao committed 2026-09-10 18:52:58 +08:00
1 parent 3c759f14c2
commit 3781e6bda1
13 files changed
+17883 -28

No files matched your search

+10 -2
View File
@@ -105,8 +105,16 @@ for (const task of data.tasks) {
}
let localLinks = 0
const markdownFiles = fs.readdirSync(dir, { recursive: true })
.filter(file => file.endsWith('.md')).map(file => path.join(dir, file))
function markdownIn(directory) {
return fs.readdirSync(directory, { withFileTypes: true }).flatMap((entry) => {
const filename = path.join(directory, entry.name)
if (entry.isDirectory()) {
return ['.cache', 'node_modules', '.git'].includes(entry.name) ? [] : markdownIn(filename)
}
return entry.isFile() && entry.name.endsWith('.md') ? [filename] : []
})
}
const markdownFiles = markdownIn(dir)
for (const file of [...markdownFiles, path.join(root, 'AGENTS.md')]) {
const content = fs.readFileSync(file, 'utf8')
for (const match of content.matchAll(/\[[^\]]*\]\(([^)]+)\)/g)) {