Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
logger.error(error.message);
}
if (stats && (stats.hasErrors() || stats.hasWarnings())) {
const { warnings, errors } = stats.toJson(managerConfig.stats);
errors.forEach(e => logger.error(e));
warnings.forEach(e => logger.error(e));
}
process.exitCode = 1;
reject(error || stats);
return;
}
logger.trace({ message: '=> manager built', time: process.hrtime(managerStartTime) });
stats.toJson(managerConfig.stats).warnings.forEach(e => logger.warn(e));
resolve(stats);
});
});