iter(g06): 组件数门禁覆盖 README

This commit is contained in:
HIsheR
2026-10-23 19:08:35 +08:00
parent 8d439f068f
commit b6c948998b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -610,7 +610,7 @@ function checkReadme(pkgs) {
function checkCountDocs(actual) {
const issues = [];
const re = /(\d+)\s*个(?:\s*DOM\s*)?组件/;
for (const name of ['AGENTS.md', 'ARCHITECTURE.md']) {
for (const name of ['AGENTS.md', 'ARCHITECTURE.md', 'README.md']) {
const file = path.join(ROOT, name);
if (!fs.existsSync(file)) continue; // 卫语句:文档缺失不校验
fs.readFileSync(file, 'utf8').split(/\r?\n/).forEach((line, i) => {