-
Notifications
You must be signed in to change notification settings - Fork 12.8k
different results if --outDir using relative path is in parent or child tsconfig #24851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
File paths are relative to the containing tsconfig.jon file location. |
@mhegazy thanks for the comment. I understand, though using the extend keyword I would expect the relative path to be relative to the child tsconfig (as I am "extending" the parent, not "including" it). |
That is a design choice that we made when the feature was first implemented. the rational is files do not really move around, so for path that were originally authored as relative paths, it is strange for these to move around just because the file was used as abase. |
Thanks for your answers :) |
I'm having a similar problem, it's there a way that we can use "${cwd}/dist", use an env variable or similar? |
This is really annoying. apart from other settings I already need to duplicate, I need to duplicate |
Hello,
I don't know if it's intentional or not but given this structure:
Actual behavior:
Now running tsc in
aFolder
:base.tsconfig.json
defined as./dist
it will create thedist
folder in the root folderaFolder/tsconfig.json
defined as./dist
it will create thedist
folder under theaFolder
outDir
files are output in theaFolder
folderExpected behavior:
I would expect the
dist
folder to be created relatively to the path of the main tsconfig used by typescript (heretsconfig.json
) regardless ifoutDir
has been specified in the parent or childtsconfig.json
The text was updated successfully, but these errors were encountered: