-
Notifications
You must be signed in to change notification settings - Fork 718
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
--entryPoints
not recognized in typedoc
in packages strategy
#2560
Comments
This is working as expected. TypeDoc in packages mode does not call TypeDoc in a separate process for each package, it instead reads the configuration file and executes in that package. |
Backstory: I was converting my mono-style repo into using the Luckily, the workaround is very easy, and is probably better practice to keep everything in the cd packages/wrapping-lib
npm run docs |
OHH.... I think I understand now. I was confused when looking at the source in your packages example. I was under the impression that typedoc was called (by The main downside is that you need a {
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
} I tried putting $ npm run docs
> [email protected] docs
> typedoc
[info] Converting project at ./packages/lib
TypeDoc exiting with unexpected error:
Error: ENOENT: no such file or directory, scandir '/home/nic/Desktop/typedoc-packages-example/src'
at Object.readdirSync (node:fs:1515:26)
at glob (/home/nic/Desktop/typedoc-packages-example/node_modules/typedoc/dist/lib/utils/fs.js:253:32)
at /home/nic/Desktop/typedoc-packages-example/node_modules/typedoc/dist/lib/utils/entry-point.js:176:38
at Array.flatMap (<anonymous>)
at expandGlobs (/home/nic/Desktop/typedoc-packages-example/node_modules/typedoc/dist/lib/utils/entry-point.js:175:31)
at getEntryPoints (/home/nic/Desktop/typedoc-packages-example/node_modules/typedoc/dist/lib/utils/entry-point.js:78:53)
at _classThis.getEntryPoints (/home/nic/Desktop/typedoc-packages-example/node_modules/typedoc/dist/lib/application.js:253:53)
at _classThis.convert (/home/nic/Desktop/typedoc-packages-example/node_modules/typedoc/dist/lib/application.js:275:38)
at _classThis._convertPackages (/home/nic/Desktop/typedoc-packages-example/node_modules/typedoc/dist/lib/application.js:473:44)
at async run (/home/nic/Desktop/typedoc-packages-example/node_modules/typedoc/dist/lib/cli.js:96:21) {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: '/home/nic/Desktop/typedoc-packages-example/src'
} I understand why that error occurs, I'm just stating it as a minor drawback having to duplicate the same |
Yeah, that downside annoys me too, that's what #2523 is intended to fix, just haven't gotten around to implementing it yet |
Didn't know you already had an issue for this! I do not think there is any action needed for this issue, if I have anything more to add, I'll reply in #2523. Would love to see this implemented, as well as other features I've suggested. If I find the time and motivation, I hope to contribute in the future. This is really a great project. |
Search terms
entry, points, packages, strategy
Expected Behavior
This is for the entry point strategy of
packages
only.When I move the "entryPoints" from the config file
typedoc.json
into thetypedoc
script, all of a sudden I get the warning:No entry points were provided, this is likely a misconfiguration.
And, no documentation is generated for that package. When I runtypedoc
in the package directory (instead of the base directory) it still works fine with no warnings or errors. The warning only occurs when I donpm run docs
in the base directory. See the steps for more details.Actual Behavior
Steps to reproduce the bug
Clone
packages/wrapping-lib/typedoc.json
{ "extends": ["../../typedoc.base.json"], - "entryPoints": ["src/index.ts"] }
packages/wrapping-lib/package.json
Run the docs script
Environment
The text was updated successfully, but these errors were encountered: