code: function findComponents(directory, components = []) {
    const items = fs.readdirSync(directory);
  
    items.forEach(item => {
      const itemPath = path.resolve(directory, item);
  
      if (fs.statSync(itemPath).isDirectory()) {
        findComponents(itemPath, components);
        return;
      }
  
      if (!componentRegex.test(item)) {
        return;
      }
  
      components.push({
        filename: itemPath,
      });
    });
  
    return components;
  }
docs: Returns the component source in a flat array.