mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-29 16:41:31 +08:00
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:
parent
6260ea1532
commit
a9643174cc
@ -72,10 +72,14 @@ function cleanupNodeModules() {
|
|||||||
const nodeDir = fs.readdirSync(path.join(DEST_DIR, "./node_modules"), { recursive: true, withFileTypes: true });
|
const nodeDir = fs.readdirSync(path.join(DEST_DIR, "./node_modules"), { recursive: true, withFileTypes: true });
|
||||||
|
|
||||||
const filterableDirs = new Set([
|
const filterableDirs = new Set([
|
||||||
"test",
|
|
||||||
"docs",
|
|
||||||
"demo",
|
"demo",
|
||||||
|
"demos",
|
||||||
|
"doc",
|
||||||
|
"docs",
|
||||||
"example",
|
"example",
|
||||||
|
"examples",
|
||||||
|
"test",
|
||||||
|
"tests"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const filteredDirs = nodeDir
|
const filteredDirs = nodeDir
|
||||||
|
Loading…
x
Reference in New Issue
Block a user