From 269c382524d20ba9b9425f23c543e6af70931b8e Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Tue, 19 Dec 2023 13:50:35 +0000 Subject: [PATCH] Revert "Set `--enable-source-maps` when running Node." --- packages/server/nodemon.json | 2 +- packages/server/package.json | 2 +- packages/worker/nodemon.json | 2 +- packages/worker/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/server/nodemon.json b/packages/server/nodemon.json index 4a6af42dda..33d277dd64 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 --enable-source-maps ./dist/index.js" + "exec": "yarn build && node ./dist/index.js" } diff --git a/packages/server/package.json b/packages/server/package.json index afa45c980a..0274db48ee 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 --enable-source-maps dist/index.js", + "run:docker": "node 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", diff --git a/packages/worker/nodemon.json b/packages/worker/nodemon.json index 81369f45da..a8e9d45b47 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 --enable-source-maps dist/index.js" + "exec": "yarn build && node dist/index.js" } diff --git a/packages/worker/package.json b/packages/worker/package.json index 1982ed2111..e9c2f4c5de 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 --enable-source-maps dist/index.js", + "run:docker": "node 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",