Closed
Description
π Search Terms
configDir
π Version & Regression Information
This is likely bug with feature introduced in 5.5.0
β― Playground Link
https://github.com/Knagis/importHelpers-5.5.0/tree/exclude-lib
π» Code
tsconfig.base.json
{
"compilerOptions": {
"outDir": "${configDir}/lib",
},
}
packages/foo/tsconfig.json
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
// "outDir": "lib" // uncomment to make it work
},
"include": [
"**/*.ts"
],
}
π Actual behavior
When using outDir: "${configDir}/lib"
in the base config, compiling this project results in
error TS5055: Cannot write file 'C:/Code/tslibissue/packages/foo/lib/src/index.d.ts' because it would overwrite input file.
π Expected behavior
Project compiles without errors
Additional information about the issue
If i specify outDir: "lib"
or even outDir: "${configDir}/lib"
in the derived config, the project compiles without errors as the lib folder seems to be automatically excluded from the compilation.