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
This commit is contained in:
Panagiotis Papadopoulos 2025-03-16 01:53:14 +01:00
parent 6260ea1532
commit a9643174cc

View File

@ -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