Skip to content

No package.json was found. package.json is on cwd. #2985

@mjy9088

Description

@mjy9088

Search terms

package.json

Expected Behavior

find package.json in cwd

Actual Behavior

doesn't find package.json

[warning] The --name option was not specified, and no package.json was found. Defaulting project name to "Documentation"

Steps to reproduce the bug

{
  "entryPoints": ["src/**/*.ts"]
}

With this simple configuration which is adjacent to package.json, typedoc doesn't find package.json

Current workaround

{
  "entryPointStrategy": "expand",
  "entryPoints": ["src"]
}

Environment

  • Typedoc version: 0.28.8
  • TypeScript version: 5.8.3
  • Node.js version: v23.10.0
  • OS: uname -s: Darwin

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