Skip to content

Instantly share code, notes, and snippets.

@jhnns
Created November 16, 2018 10:51
Show Gist options
  • Save jhnns/ebd4ce6a003c89e129e6f5195df6dade to your computer and use it in GitHub Desktop.
Save jhnns/ebd4ce6a003c89e129e6f5195df6dade to your computer and use it in GitHub Desktop.
How to debug a Node.js server written in TypeScript running in Docker
return tsResult.js
.pipe(
sourcemaps.mapSources(function(sourcePath, file) {
return "../../" + sourcePath; // rewrite sourcePath to point to the correct TypeScript file paths
})
)
.pipe(sourcemaps.write("./"))
.pipe(gulp.dest("./dist/src"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment