-
-
Notifications
You must be signed in to change notification settings - Fork 748
Closed
Description
Search terms
entryPointStrategy, packages
Expected Behavior
The package.json should be parsed correctly
Actual Behavior
An error appeared:
error Unable to find any entry points. Make sure TypeDoc can find your tsconfig
Steps to reproduce the bug
- My document is placed in
packages/documents; - Other packages are placed in
packages/a,packages/b,packages/c; - Entry point is setted to:
{
entryPoints: ['../a', '../b', '../c']
}- The package parsing call stack is:
a.getEntryPointsForPackages, With the following code:
const expandedPackages = expandPackages(
logger,
".",
packageGlobPaths,
exclude
);The second parameter packageJsonDir is ., this may assume that the package we want to generate documentation for is a subdirectory of the current directory, but in some cases this assumption does not hold, the following call stack proofed this:
b. expandPackages: It is to trying to parse a glob pattern:
const globbedPackageJsonPaths = glob(
resolve(packageJsonDir, workspace, "package.json"),
resolve(packageJsonDir)
);The first parameter of this glob is:
ROOT_PATH_OF_THE_PROJECT\packages\a\package.json
The second parameter of this glob is:
ROOT_PATH_OF_THE_PROJECT\packages\documents
The home-made glob function simply won't return anything, and caused the parsing work failed.
Environment
- Typedoc version: typedoc@npm:0.23.11
- TypeScript version: typescript@npm:4.6.4
- Node.js version: v16.15.0
- OS: Windows 11
Metadata
Metadata
Assignees
Labels
No labels