Skip to content

Add support for "exclude" in tsconfig.json #3043

@mhegazy

Description

@mhegazy

tsconfig.json picks all files in the containing folder by default, this is problematic with "node_modules" that contain .ts/.d.ts that are not relevant to the project. "files" is not useful here because of the lack of support for globs (see #1927).

Proposal:

  • support a new property "exclude" that specifies a list of directories/files to exclude.
  • "exclude" is ignored if "files" is present.
{
    "compilerOptions": {
        "out": "../../built/local/tsc.js",
        "sourceMap": true
    },
    "exclude": [
        "script/helper.ts",
        "node_modules"
    ]
}

Note: This is needed if we want any of gulp/grunt/task runner/ProjectK support in VS .

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions