const fs = require('fs');
const path = require('path');

const files = fs.readdirSync('dist').filter(f => f.endsWith('.php'));
files.forEach(f => {
  const content = fs.readFileSync(path.join('dist', f), 'utf8');
  if (content.includes('generate')) {
    console.log(`- ${f}`);
  }
});
const cbFiles = fs.readdirSync('dist/callback').filter(f => f.endsWith('.php'));
cbFiles.forEach(f => {
  const content = fs.readFileSync(path.join('dist/callback', f), 'utf8');
  if (content.includes('generate')) {
    console.log(`- callback/${f}`);
  }
});
