Skip to content

--exclude option does not work #395

Closed
@Lodin

Description

@Lodin

Trying to generate documentation for my project I have faced with the problem that typedoc tried to generate documentation for spec.ts files I excluded in the typedoc command in my package.json script section:

{
    "docs": "typedoc --out docs --exclude **/*.spec.ts src",
}

It worked even when I moved my tests from src to the separate test directory. So I assume that specifying a directory as an argument of typedoc command does not work too.

I googled a lot, but found nothing except an old issue that did not help me at all despite I tried all of examples from there.

So I decided to look at the code, and after some investigation found that it might be a problem at this line. When I added an exclude check from here, it compiled as it should, only for non-spec files.

I use the typedoc@0.5.5, typescript@2.2.0-dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedContributions are especially encouraged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions