-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
TypeScript Version: 3.5.0-dev.20190413
, 3.4.3
Search Terms:
tsbuildinfo, incremental build, rootDir
Code
For reproduce test project https://github.com/ikokostya/ts-bugs can be used:
git clone https://github.com/ikokostya/ts-bugs
cd ts-bugs
npm install
npx tsc
The test project has the following file structure:
src/
lib/
foo.ts
tests/
foo.test.ts
tsconfig.json
tsconfig.json
content:
{
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"target": "es2017",
"lib": ["es2017"],
"strict": true,
"noEmitOnError": true,
"sourceMap": true,
"rootDir": "src",
"incremental": true,
"outDir": "out"
},
"include": [
"src/**/*"
]
}
Expected behavior:
After compilation tsbuildinfo
file will be placed in out
directory, i.e. ./out/tsconfig.tsbuildinfo
.
Actual behavior:
tsbuildinfo
file is placed in project root directory, i.e. ./tsconfig.tsbuildinfo
.
Playground Link:
transitive-bullshit, robyoder, dannysood, brillout, AverageHelper and 11 more
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug