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" } 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", 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",