mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	Merge pull request #1173 from TriliumNext/fix_etapi-openapi-integration
build: fix missing copying of etapi.openapi.yaml in build process
This commit is contained in:
		
						commit
						508908ded8
					
				@ -29,7 +29,7 @@ const copy = async () => {
 | 
				
			|||||||
        fs.copySync(path.join("build", srcFile), destFile, { recursive: true });
 | 
					        fs.copySync(path.join("build", srcFile), destFile, { recursive: true });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const filesToCopy = ["config-sample.ini", "tsconfig.webpack.json"];
 | 
					    const filesToCopy = ["config-sample.ini", "tsconfig.webpack.json", "./src/etapi/etapi.openapi.yaml"];
 | 
				
			||||||
    for (const file of filesToCopy) {
 | 
					    for (const file of filesToCopy) {
 | 
				
			||||||
        log(`Copying ${file}`);
 | 
					        log(`Copying ${file}`);
 | 
				
			||||||
        await fs.copy(file, path.join(DEST_DIR, file));
 | 
					        await fs.copy(file, path.join(DEST_DIR, file));
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user