import { readFileSync } from "fs"; const scripts = [ "task3-check-tools.mjs", "task5-update-stars.mjs", "task6-review-hot.mjs", "daily-news.mjs", "task7-news-to-community.mjs", "daily-discover.mjs", ]; for (const s of scripts) { const c = readFileSync("scripts/" + s, "utf-8"); const hasFail = c.includes('"failed"'); const hasCatch = c.includes(".catch("); const hasStartLog = c.includes("taskLog.create") || c.includes("logTask("); console.log(`${s.padEnd(35)} catch=${hasCatch} failLog=${hasFail} startLog=${hasStartLog}`); }