Description of tsBuildInfoFile
is misleading in generated tsconfig.json
#48053
Labels
Bug
A bug in TypeScript
Good First Issue
Well scoped, documented and has the green light
Help Wanted
You can do this
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
π Search Terms
tsconfig tsBuildInfoFile Specify the folder
π Version & Regression Information
4.5.5, 4.7.0-dev.20220227
β― Playground Link
N/A
π» Code
After running
tsc --init
the generatedtsconfig.json
includes the following line:// "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */
π Actual behavior
The description says "Specify the folder" and the sample value also indicates that you specify a folder for this option.
However, specifying a folder would result in a following error when running
tsc
:π Expected behavior
Actually you need to specify the file .
The official tsConfig doc also says βThis setting lets you specify a fileβ.
A fix would be, for example:
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
The text was updated successfully, but these errors were encountered: