From 565e1668b372e7ac4482fc13962b32b1dbb084b3 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 30 Jan 2024 18:33:35 +0100 Subject: [PATCH] fix(cli): avoid flows in script generate-metadata --- cli/script.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cli/script.ts b/cli/script.ts index 7d0b80d432..fc8a851f1a 100644 --- a/cli/script.ts +++ b/cli/script.ts @@ -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, {}