In my project, I have a directory structure with multiple typescript files organized as follows:
| src
| app-1
| tsconfig.json
| app-2
| tsconfig.json
| common
| standalone
| tsconfig.json
For each of the standalone
, app-1
, and app-2
directories, there is a separate tsconfig.json
file. The applications (app-*) are built using webpack to produce a single bundle. The files in the standalone directory are individual JavaScript files that are directly embedded in a webpage. The common directory contains files shared across multiple apps and standalone scripts.
I am looking to create a tsconfig file that will generate a flat directory structure within a js/dist
directory. Currently, the output looks like this:
| js
| dist
| common
| file-common-1.js
| file-common-2.js
| standalone
| file-standalone-1.js
| file-standalone-2.js
However, what I want is:
| js
| dist
| file-common-1.js
| file-common-2.js
| file-standalone-1.js
| file-standalone-2.js
It's worth noting that many Google search results show questions asking for the opposite, but I believe those queries pertain to older versions of TypeScript.