Skip to content

ignoreFileNamePattern apply to non project context path(absolute) with default tsconfig.include section #9472

@agaricus

Description

@agaricus

TypeScript Version: nightly (2.0.0-dev.20160701)

Code

// Skip over any minified JavaScript files (ending in ".min.js")
// Skip over dotted files and folders as well
const ignoreFileNamePattern = /(\.min\.js$)|([\\/]\.[\w.])/;

https://github.com/Microsoft/TypeScript/blob/master/src/compiler/commandLineParser.ts#L692-L694

but this file is absolute and ignored this file
https://github.com/Microsoft/TypeScript/blob/master/src/compiler/commandLineParser.ts#L991
and

.outer
└─ project
...├─ test.ts
...└─ tsconfig.json

Expected behavior:
project scope file match
emit .outer/project/test
Actual behavior:
absolute scope file match
ignore .outer/project/test

Metadata

Metadata

Assignees

No one assigned

    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