Hello,
I don't know if it's intentional or not but given this structure:
* base.tsconfig.json
* aFolder/
* tsconfig.json (extends base.tsconfig.json)
Actual behavior:
Now running tsc in aFolder:
- if I have an outDir option in the
base.tsconfig.json defined as ./dist it will create the dist folder in the root folder
* base.tsconfig.json
* aFolder/
* tsconfig.json (extends base.tsconfig.json)
* dist/
- if I have an outDir option in the
aFolder/tsconfig.json defined as ./dist it will create the dist folder under the aFolder
* base.tsconfig.json
* aFolder/
* tsconfig.json (extends base.tsconfig.json)
* dist/
- if I don't specify any
outDir files are output in the aFolder folder
Expected behavior:
I would expect the dist folder to be created relatively to the path of the main tsconfig used by typescript (here tsconfig.json) regardless if outDir has been specified in the parent or child tsconfig.json
Hello,
I don't know if it's intentional or not but given this structure:
Actual behavior:
Now running tsc in
aFolder:base.tsconfig.jsondefined as./distit will create thedistfolder in the root folderaFolder/tsconfig.jsondefined as./distit will create thedistfolder under theaFolderoutDirfiles are output in theaFolderfolderExpected behavior:
I would expect the
distfolder to be created relatively to the path of the main tsconfig used by typescript (heretsconfig.json) regardless ifoutDirhas been specified in the parent or childtsconfig.json