mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
build(copy-dist): execute filterableDirs cleanup in one chain
This commit is contained in:
parent
a9643174cc
commit
8275f3c867
@ -82,13 +82,10 @@ function cleanupNodeModules() {
|
||||
"tests"
|
||||
]);
|
||||
|
||||
const filteredDirs = nodeDir
|
||||
nodeDir
|
||||
.filter(el => el.isDirectory() && filterableDirs.has(el.name))
|
||||
.map(el => path.join(DEST_DIR, el.parentPath, el.name));
|
||||
|
||||
filteredDirs.forEach(dir => {
|
||||
fs.removeSync(dir);
|
||||
})
|
||||
.map(el => path.join(DEST_DIR, el.parentPath, el.name))
|
||||
.forEach(dir => fs.removeSync(dir));
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user