Skip to content

typedoc.json inputFiles property not working as expected #1263

@pchuong

Description

@pchuong

Search terms

typedoc.json inputFiles

Expected Behavior

When I specified the inputFiles option in the typedoc.json file to have an array (or single) of directories such as ["./src/foo/lib", "./src/bar/lib"]. It pickup all the files in the ./src file. I expect it to only search for files in the two lib folders.

Actual Behavior

All files in the ./src folder are parsed and the generated doc contains files in other folder.

Steps to reproduce the bug

typedoc.json
{
"mode": "modules",
"out": "./docs",
"inputFiles": ["./src/foo/lib", "./src/bar/lib"]
}

Case #1: doesn't work
typedoc --options typedoc.json --tsconfig tsconfig.json

Case #2: work (with or without the inputFiles property in the typedoc.json file)
typedoc --options typedoc.json --tsconfig tsconfigjson "./src/foo/lib" "./src/bar/lib"

Environment

  • Typedoc version: 0.17.4
  • TypeScript version: 3.8.3
  • Node.js version: 12.16.1
  • OS: Windows10

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