child.on('exit', function(code, signal) { if (result.config.showTime) { console.primary(`[${messages.app.name}]`, `Done in: ${(new Date() - timestamp) / 1000}s`); } process.on('exit', function() { if (signal) { process.kill(process.pid, signal); } else { process.exit(code); } }); });