'Is it possible to have compiled .js files alongside their .ts counterparts?

Currently, when compiling my project, all *.js files end up in a separate dist/ folder together.

Is there a way to have these files alongside their *.ts counterparts instead e.g.,

|
- app
  |
   -- index.ts
   -- index.js
   -- db
      |
      -- config.ts
      -- config.js


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source