Closed softmarshmallow closed 1 year ago
I think you just need to set entrypoints in a typedoc config for each package. ie:
website/docusaurus.config.js
entryPoints: ['../packages/*'],
entryPointStrategy: 'packages',
packages/package-a/typedoc.json
"entryPoints": ["./lib/index.ts"]
packages/package-b/typedoc.json
"entryPoints": ["./lib/index.ts"]
I'm using
docusaurus-plugin-typedoc
in my ts monorepo projectEach package's main entry point is set to dist/index.js since it needs to be published to npm. I'm wondering this would be a problem, Yet I don't want to set up multiple docusaurus-plugin-typedoc plugins for each packages, seems little redundant.
How would I be able to setup this plugin while package's entry is not index.ts, but lib/index.ts and not specified in pakcage.json?