Closed
Description
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 generated tsconfig.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
:
error TS5033: Could not write file '/path/to/folder': EISDIR: illegal operation on a directory, open '/path/to/folder'.
π 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. */