mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:33:35 +03:00
⚡ Fix PNG file copy for CLI build --watch command (#661)
This commit is contained in:
parent
6a3f075612
commit
002437862d
@ -105,10 +105,10 @@ export async function buildFiles (options?: IBuildOptions): Promise<string> {
|
||||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
copyfiles([join(process.cwd(), './*.png'), outputDirectory], { up: true }, () => resolve(outputDirectory));
|
||||
buildProcess.on('exit', code => {
|
||||
// Remove the tmp tsconfig file
|
||||
tsconfigData.cleanup();
|
||||
copyfiles([join(process.cwd(), './*.png'), outputDirectory], { up: true }, () => resolve(outputDirectory));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user