Skip to content

Error for compilataions with no source files #11650

Description

@mhegazy

Running tsc on an empty input set should result into an error. Most of the time this is an error in the configurations that the user did not intend.

For instance, see #11621.

  {
      "compilerOptions": {
          "outDir": "src"
      },
      "include":[
          "src/**/*"
      ]
  }

This config file results in no input files, yet calling tsc on it produces no errors.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issue

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions