Refactor/整理项目对话错误相关代码 #593

Merged
k88936 merged 40 commits from refactor/turn-error-to-explicit-struct into master 2026-10-03 15:58:25 +08:00
Showing only changes of commit f593bd4bf6 - Show all commits
+4 -1
View File
@@ -73,7 +73,10 @@ const targets = [
function snapshot(dir) {
const absolute = path.join(repoRoot, dir);
if (!fs.existsSync(absolute)) return new Map();
if (!fs.existsSync(absolute)) {
console.warn(`目录不存在,跳过校验:${dir}`);
return new Map();
}
return new Map(
fs
.readdirSync(absolute, { withFileTypes: true })