Skip to content

Commit 63212be

Browse files
authored
fix install & run scripts (#2480)
* fix install & run scripts * Update app.ts
1 parent 8e411bd commit 63212be

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

backend/src/app.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,15 @@ export default function initializeApp(
8484
app.use(errorLogger);
8585
app.use(errorHandler);
8686

87-
process.on('uncaughtException', (err) => {
87+
process.on('uncaughtException', (error) => {
8888
logger.error(
8989
'[UNCAUGHT EXCEPTION]:',
90-
util.inspect(err, { depth: null, colors: true })
90+
util.inspect(error, { depth: null, colors: true })
9191
);
92+
console.error(error);
93+
9294
if (ENV.SENTRY_DSN_BACKEND) {
93-
Sentry.captureException(err);
95+
Sentry.captureException(error);
9496
}
9597
});
9698

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"description": "leadminer",
55
"private": true,
66
"scripts": {
7-
"install-deps": "npm i && npm run install-deps:backend && npm run install-deps:frontend",
8-
"install-deps:backend": "npm i --prefix ./backend",
7+
"install-deps": "npm i && npm run install-deps:backend && npm run install-deps:frontend && npm run install-deps:micro-services-emails-fetcher",
98
"install-deps:frontend": "npm i --prefix ./frontend",
9+
"install-deps:backend": "npm i --prefix ./backend",
10+
"install-deps:micro-services-emails-fetcher": "npm i --prefix ./micro-services/emails-fetcher",
1011
"dev:all": "./run.sh",
1112
"dev:generate-env": "bash ./generate_env.sh",
1213
"dev:supabase": "supabase start",

0 commit comments

Comments
 (0)