mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +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" |         "tests" | ||||||
|     ]); |     ]); | ||||||
| 
 | 
 | ||||||
|     const filteredDirs = nodeDir |     nodeDir | ||||||
|         .filter(el => el.isDirectory() && filterableDirs.has(el.name)) |         .filter(el => el.isDirectory() && filterableDirs.has(el.name)) | ||||||
|         .map(el => path.join(DEST_DIR, el.parentPath, el.name)); |         .map(el => path.join(DEST_DIR, el.parentPath, el.name)) | ||||||
| 
 |         .forEach(dir => fs.removeSync(dir)); | ||||||
|     filteredDirs.forEach(dir => { |  | ||||||
|         fs.removeSync(dir); |  | ||||||
|     }) |  | ||||||
| 
 | 
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Panagiotis Papadopoulos
						Panagiotis Papadopoulos