mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +01:00 
			
		
		
		
	build(copy-dist): do not copy build folder into src folder
stop the build folder from being copied into the dist/src subfolder → there is no sense in doing that → the contents of the build folder are corretly copied previously already (see line 26ff)
This commit is contained in:
		
							parent
							
								
									60a2b56636
								
							
						
					
					
						commit
						135101f57b
					
				@ -45,7 +45,7 @@ const copy = async () => {
 | 
				
			|||||||
        await fs.copy(dir, path.join(DEST_DIR, dir));
 | 
					        await fs.copy(dir, path.join(DEST_DIR, dir));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const srcDirsToCopy = ["./src/public", "./src/views", "./build"];
 | 
					    const srcDirsToCopy = ["./src/public", "./src/views"];
 | 
				
			||||||
    for (const dir of srcDirsToCopy) {
 | 
					    for (const dir of srcDirsToCopy) {
 | 
				
			||||||
        log(`Copying ${dir}`);
 | 
					        log(`Copying ${dir}`);
 | 
				
			||||||
        await fs.copy(dir, path.join(DEST_DIR_SRC, path.basename(dir)));
 | 
					        await fs.copy(dir, path.join(DEST_DIR_SRC, path.basename(dir)));
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user