A full-featured CRM built with React, shadcn/ui, and Supabase.
chore: exclude test files from registry generator
Anibal Svarcas112465625e8a
diff --git a/scripts/generate-registry.mjs b/scripts/generate-registry.mjsindex 61ca4d20..ef1f0331 100755--- a/scripts/generate-registry.mjs+++ b/scripts/generate-registry.mjs@@ -17,14 +17,16 @@ const excludedHooks = ["useSupportCreateSuggestion.tsx",];+const isTestFile = (filePath) => /\.(spec|test)\.[jt]sx?$/.test(filePath);+const atomicCrmComponents = globSync(path.join(atomicCrmComponentsPath, "**", "*.ts*"),-);+).filter((filePath) => !isTestFile(filePath));const supabaseComponents = globSync(path.join(supabaseComponentsPath, "**", "*.ts*"),-);+).filter((filePath) => !isTestFile(filePath));const hooks = globSync(path.join(hooksPath, "**", "*.ts*")).filter((hook) => {- return !excludedHooks.includes(path.basename(hook));+ return !excludedHooks.includes(path.basename(hook)) && !isTestFile(hook);});const registryContent = JSON.parse(fs.readFileSync(registryPath, "utf-8"));