fix(cli): avoid flows in script generate-metadata

This commit is contained in:
Ruben Fiszel
2024-01-30 18:33:35 +01:00
parent 64441b3452
commit 565e1668b3
+5 -1
View File
@@ -624,7 +624,11 @@ async function generateMetadata(
const elems = await elementsToMap(
await FSFSElement(Deno.cwd()),
(p, isD) => {
return (!isD && !exts.some((ext) => p.endsWith(ext))) || ignore(p, isD);
return (
(!isD && !exts.some((ext) => p.endsWith(ext))) ||
ignore(p, isD) ||
p.includes(".flow/")
);
},
false,
{}