Update package and ts setup.

This commit is contained in:
Patrick Fic
2025-10-31 15:58:24 -07:00
parent be3918cbaf
commit de883bd483
4 changed files with 974 additions and 146 deletions

View File

@@ -28,6 +28,17 @@ dotenv.config({
path: resolve(process.cwd(), `.env.${process.env.NODE_ENV || "development"}`)
});
// Global error handlers
process.on('uncaughtException', (error) => {
console.error('Uncaught Exception:', error);
process.exit(1);
});
process.on('unhandledRejection', (reason, promise) => {
console.error('Unhandled Rejection at:', promise, 'reason:', reason);
process.exit(1);
});
// Logger setup
const commonTransportConfig = {
maxSize: "20m",