import fs from 'node:fs/promises'; import path from 'node:path'; const required = [ path.join(process.cwd(), 'artifacts', 'analysis', 'discordjs-surface.json'), path.join(process.cwd(), 'artifacts', 'analysis', 'bare-surface.json'), path.join(process.cwd(), 'patches', 'patch-manifest.json') ]; const missing = []; for (const file of required) { try { await fs.access(file); } catch { missing.push(file); } } if (missing.length) { console.error('Release verification failed. Missing artifacts:\n' + missing.join('\n')); process.exit(1); } console.log('Release verification passed.');