Skip to content

tsconfig.json extends impossible to cancel / override previous settings #14184

@pocesar

Description

@pocesar

TypeScript Version: 2.1.1 / nightly (2.2.0-dev.201xxxxx)

Code

// tsconfig.json
{
   "compilerOptions": {
     "outFile": "dist/app.js"
   }
}
// extends.json
{
   "extends": "./tsconfig.json",
   "compilerOptions": {
       "outFile": null,
       "outDir": "mapped"
   }
}

Expected behavior:

Be able to "cancel" previous outFile setting by setting the "outFile" to null in the extended version

Actual behavior:

error TS5024: Compiler option 'outFile' requires a value of type string.

if outFile is set to "", it tries to write to . giving a ESDIR error in Node

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions