import { readFileSync, existsSync } from 'node:fs'; const required = ['app.js','app.json','pages/index/index.xhsml','pages/discover/discover.xhsml','pages/test/test.js','pages/result/result.js','assets/test-covers/rice.jpg','vendor/poster-editor.cjs','web/index.html','web/app.js']; for (const file of required) if (!existsSync(file)) throw new Error(`Missing ${file}`); JSON.parse(readFileSync('app.json','utf8')); const web = readFileSync('web/index.html','utf8'); if (!web.includes('./app.js') || !web.includes('./style.css')) throw new Error('Preview assets are not linked'); console.log(`Static checks passed (${required.length} required files).`);