⚡ Fix PNG file copy for CLI build --watch command (#661)

This commit is contained in:
Iván Ovejero authored and GitHub committed 2020-06-12 15:28:40 +02:00
1 parent 6a3f075612
commit 002437862d
1 file changed
+1 -1
+1 -1
View File
@@ -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));
});
});
}