Skip to content

Unable to doc file located in a dir with [] #2825

@xuhdev

Description

@xuhdev

Search terms

file path

Expected Behavior

typedoc should be able to recognize file paths containing [abc]. This kind of odd path names (along with [...abc]) are required by a commonly used feature in next.js: https://nextjs.org/docs/app/building-your-application/routing/dynamic-routes

Actual Behavior

If a file path contains [abc], typedoc generates an error.

Steps to reproduce the bug

  1. mkdir \[abc\]
  2. touch \[abc\]/a.ts
  3. typedoc \[abc\]/a.ts

TypeDoc generates:

[warning] The glob ./[abc]/a.ts did not match any files
[error] Unable to find any entry points. See previous warnings

Also error out even if the current working directory is inside [abc]/.

Environment

  • Typedoc version: 0.27.6
  • TypeScript version: 5.7.2
  • Node.js version: 22.12.0
  • OS: Linux

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions