I need help to setup my tsconfig.json file.
I’m building a Django project with multiple apps, the base structure for what I would like to obtain is as follow:
project/
|-app1/
|
|-app2/
|
|-tsconfig.js
Now, each app folder should have this structure:
appX/
|-static/
|-appX
|-js/
| |-test.js
|
|-ts/
|-test.ts
Basically I want my tsconfig to output the relative js file always inside “../js/”, and this has to be true for any app of the project. Is this possible to achieve?
I have tried to change outDir but I can’t build it so that it takes into consideration a generic relative path. For example, using ../js simply creates the javascript files inside in a folder on the same level as “project”
Korr4K is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.