-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Milestone
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. */
henry-filosa and dennis-gonzales
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this