From eb38012e3ddfeb86c4c2be272b90b1bfac8a2e58 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Tue, 19 Dec 2023 10:36:40 +0000 Subject: [PATCH 1/3] Set --enable-source-maps when running Node in docker. --- packages/server/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/package.json b/packages/server/package.json index 0274db48ee..afa45c980a 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -18,7 +18,7 @@ "test": "bash scripts/test.sh", "test:memory": "jest --maxWorkers=2 --logHeapUsage --forceExit", "test:watch": "jest --watch", - "run:docker": "node dist/index.js", + "run:docker": "node --enable-source-maps dist/index.js", "run:docker:cluster": "pm2-runtime start pm2.config.js", "dev:stack:up": "node scripts/dev/manage.js up", "dev:stack:down": "node scripts/dev/manage.js down", From 1c6036cb09fcd7c5656ae09bfbe14415aab6eaf4 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Tue, 19 Dec 2023 10:38:06 +0000 Subject: [PATCH 2/3] Set --enable-source-maps when running Node in nodemon. --- packages/server/nodemon.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/nodemon.json b/packages/server/nodemon.json index 33d277dd64..4a6af42dda 100644 --- a/packages/server/nodemon.json +++ b/packages/server/nodemon.json @@ -9,5 +9,5 @@ ], "ext": "js,ts,json", "ignore": ["src/**/*.spec.ts", "src/**/*.spec.js", "../*/dist/**/*"], - "exec": "yarn build && node ./dist/index.js" + "exec": "yarn build && node --enable-source-maps ./dist/index.js" } From 5da9bfee145accb5b4b02d8a727203510cab01a9 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Tue, 19 Dec 2023 10:39:25 +0000 Subject: [PATCH 3/3] Set --enable-source-maps for the worker package. --- packages/worker/nodemon.json | 2 +- packages/worker/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/worker/nodemon.json b/packages/worker/nodemon.json index a8e9d45b47..81369f45da 100644 --- a/packages/worker/nodemon.json +++ b/packages/worker/nodemon.json @@ -9,5 +9,5 @@ ], "ext": "js,ts,json", "ignore": ["src/**/*.spec.ts", "src/**/*.spec.js", "../*/dist/**/*"], - "exec": "yarn build && node dist/index.js" + "exec": "yarn build && node --enable-source-maps dist/index.js" } diff --git a/packages/worker/package.json b/packages/worker/package.json index e9c2f4c5de..1982ed2111 100644 --- a/packages/worker/package.json +++ b/packages/worker/package.json @@ -17,7 +17,7 @@ "postbuild": "copyfiles -f ../../yarn.lock ./dist/", "check:types": "tsc -p tsconfig.json --noEmit --paths null", "build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput", - "run:docker": "node dist/index.js", + "run:docker": "node --enable-source-maps dist/index.js", "debug": "yarn build && node --expose-gc --inspect=9223 dist/index.js", "run:docker:cluster": "pm2-runtime start pm2.config.js", "dev:stack:init": "node ./scripts/dev/manage.js init",