From a9643174ccc5b990e9b846abe90e36e4ec000780 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Sun, 16 Mar 2025 01:53:14 +0100 Subject: [PATCH] build(copy-dist): add further folders to list of filterableDirs same as before, but some of the modules use singular/plural, so just check for both --- bin/copy-dist.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/copy-dist.ts b/bin/copy-dist.ts index f5901225b..586650811 100644 --- a/bin/copy-dist.ts +++ b/bin/copy-dist.ts @@ -72,10 +72,14 @@ function cleanupNodeModules() { const nodeDir = fs.readdirSync(path.join(DEST_DIR, "./node_modules"), { recursive: true, withFileTypes: true }); const filterableDirs = new Set([ - "test", - "docs", "demo", + "demos", + "doc", + "docs", "example", + "examples", + "test", + "tests" ]); const filteredDirs = nodeDir