Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Confusion around files exclude include filesGlob #334

Closed

Description

Docs

This section needs better docs : https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/tsconfig.json.md#details only mentions files / include.

Question

Also does include / exclude support globs? According to http://json.schemastore.org/tsconfig they do. I thought they were just folders & files. Am I wrong?

Suggestion

Perhaps we can remove all files / exclude / include and just filesGlob (big breaking change I know).

Thanks 🌹

Activity

  1. mhegazy commented on Jul 4, 2016

    @mhegazy
    Contributor

    Also does include / exclude support globs? According to http://json.schemastore.org/tsconfig they do. I thought they were just folders & files. Am I wrong?

    they did.
    include is a new entry added in TS 2.0; both include and exclude now support glob patterns. that was merged in a few weeks back, see microsoft/TypeScript#5980

    This section needs better docs : https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/tsconfig.json.md#details only mentions files / include.

    The updated documentation is currently in branch release-2.0 and not in master. we will be merging this into master next week. so give the updated page a look at let us know if you believe it still needs updates: https://github.com/Microsoft/TypeScript-Handbook/blob/release-2.0/pages/tsconfig.json.md

    Perhaps we can remove all files / exclude / include and just filesGlob (big breaking change I know).

    I do not think we intend to support "fileGlobs".

  2. basarat commented on Jul 4, 2016

    @basarat
    Author

    Awesome. I realized my misunderstanding 🌹

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions