Description of tsBuildInfoFile is misleading in generated tsconfig.json
#48053
Labels
Milestone
tsBuildInfoFile is misleading in generated tsconfig.json
#48053
Bug Report
tsconfig tsBuildInfoFile Specify the folder
4.5.5, 4.7.0-dev.20220227
N/A
After running
tsc --initthe generatedtsconfig.jsonincludes the following line:// "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */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: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: