Skip to content

Commit

Permalink
fix: ensure source maps are loaded properly for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jrassa committed Aug 16, 2023
1 parent 5ec0bf4 commit be0739c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"init:mongo:express": "docker compose -p node-rest-starter -f dev/mongo-express.yml up -d",
"init:mongo:down": "docker compose -p node-rest-starter -f dev/mongo.yml down",
"clean": "rm -rf dist",
"start": "nodemon ./src/server.ts --exec 'npm run lint && node -r @swc-node/register' | bunyan",
"start:dev": "export NODE_ENV=development && npm run start --inspect-brk",
"start": "nodemon ./src/server.ts --exec 'npm run lint && node --inspect -r @swc-node/register' | bunyan",
"start:dev": "export NODE_ENV=development && npm run start",
"start:prod": "cd dist && node ./src/server.js",
"test": "NODE_ENV=test nodemon -r @swc-node/register src/test.ts",
"test:build": "cd dist && node -r @swc-node/register src/test.ts",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@
/* Source Map Options */
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
"inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
"sourceMap": true,

/* Experimental Options */
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
Expand Down

0 comments on commit be0739c

Please sign in to comment.