Skip to content

Overriding "incremental" gives error on tsBuildInfoFile #38493

@crystalfp

Description

@crystalfp

TypeScript Version: 3.8.3

Search Terms:
incremental, tsBuildInfoFile

Code
Create subdirectory client containing the following tsconfig.json file:

{
    "compilerOptions": {
        "target": "esnext",
        "module": "es2015",
        "noLib": false,
	"outDir": "../server/http/widgets",
        "sourceMap": true,
        "incremental": true,
        "tsBuildInfoFile": "./tsconfig.tsbuildinfo"
    },
    "include": [
        "*"
    ],
    "exclude": [
        "./node_modules",
        "./tests"
    ]
}

Expected behavior:
Overriding "incremental" on the command line this way tsc -p client --incremental false should ignore tsBuildInfoFile setting. I am doing this to force full recompilation of the project.

Actual behavior:
The above command line gives the following error:

client/tsconfig.json:8:9 - error TS5069: Option 'tsBuildInfoFile' cannot be specified without specifying option 'incremental' or option 'composite'.

8         "incremental": true,
          ~~~~~~~~~~~~~

client/tsconfig.json:9:9 - error TS5069: Option 'tsBuildInfoFile' cannot be specified without specifying option 'incremental' or option 'composite'.

9         "tsBuildInfoFile": "./tsconfig.tsbuildinfo",
          ~~~~~~~~~~~~~~~~~

Reproduce by running: tsc -p client --incremental false

Playground Link:

Related Issues:
None

Metadata

Metadata

Assignees

Labels

Working as IntendedThe behavior described is the intended behavior; this is not a bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions