Skip to content

Understanding why exclude option never works, and entry point difficulty #2376

@viveleroi

Description

@viveleroi

Search terms

negate exclude

Question

I am trying to understand entry points and exclusions. I assume "entry point" means an index.tsx file that is the root of our application, but we have dynamically loaded routes in a react app so a majority of the app is "linked" but even so, using that individual file produces docs output of nothing but our readme.

I tried uses a glob for entry points instead "entryPoints": ["app/**/*.ts?(x)"], which works, except I cannot get excludes to work despite trying a dozen different things.

I tried negating stuff in the glob in various ways, I tried adding stuff to the exclude array, yet nothing is ever excluded from the output.

For example:

{
  "$schema": "https://typedoc.org/schema.json",
  "entryPoints": ["app/**/*.ts?(x)"],
  "exclude": ["app/**/*(.spec|.stories).tsx"],
  "out": "docs"
}

The .spec.tsx and .stories.tsx files are still in the docs output. I've tried various glob patterns, listing them as separate array entries, etc. No changes.

Am I misunderstanding how this works?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions