Skip to content

File paths in tsconfig exclude are not respected in NTVS build #7198

Closed
@BigDataSamuli

Description

TypeScript Version:

1.8.2

Code

foo.ts

var foo: number = "s";

tsconfig.json

{
    "compilerOptions": {
        "module": "commonjs",
        "target": "es5"
    },
    "exclude": [
        "foo.ts"
    ]
}

Expected behavior:

In an NTVS typescript console application using the above tsconfig.json, and a file foo.ts containing an error, the build and run initiated by Visual Studio should succeed because the file containing the error is excluded.

Actual behavior:

The build fails with an error in foo.ts. Compiling from command line, the build succeeds. Also, if foo.ts is put inside a folder, and the folder is listed in the exclude array, the VS build succeeds.

This is currently breaking projects using the typings tool, because it generates two sets of type definitions, and the other set cannot be excluded.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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