New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entry point is not parsed correctly when entryPointStrategy
is packages
#2043
Comments
Knew this would come bite me at some point... yep, that was an assumption that was made. |
Hi there, I just came across this issue and think I'm missing something about how its being used. In my monorepo I have my docs generation in a package as well as the source I'm documenting, and feel like I have a setup similar to above
I'm getting the following error when trying to build ( using Docusaurus, but the issue seems to be in Typedoc, see below
It seems like whats happening is the information passed to In the example above,
This causes the glob function to explode as the root doesnt exist. Am I missing something here? |
Well... that certainly doesn't look right. |
Search terms
entryPointStrategy, packages
Expected Behavior
The
package.json
should be parsed correctlyActual Behavior
An error appeared:
Steps to reproduce the bug
packages/documents
;packages/a
,packages/b
,packages/c
;a.
getEntryPointsForPackages
, With the following code: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:The first parameter of this glob is:
The second parameter of this glob is:
The home-made glob function simply won't return anything, and caused the parsing work failed.
Environment
The text was updated successfully, but these errors were encountered: