-
Notifications
You must be signed in to change notification settings - Fork 701
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
package.json exports support #1934
Comments
I made some progress by creating doing this in the entry point I created for the docs /**
* The default export of the `@10up/headless-core` package.
*
* ```tsx
* import { PostsArchiveFetchStrategy } from "@10up/headless-core";
* ```
*/
export * as core from './index';
/**
* The react export
*
*/
export * as react from './react'; and this The only thing I couldn't do was rename the core module so it doesn become "@10up/headless-core/core" in the docs. It looks like @module doesn't wokr when using packages mode? |
I could stop renaming the "index" export (core) but If I don't rename the index export I lose the ability to document the namespace (not sure if that's expected). |
I'm going to track this in #1937 since it more fully describes how I'd like TypeDoc to work |
Search Terms
multiple exports packages, node.js exports, package.json exports. which allow this kind of behavior
Problem
I have a monorepo where some packages exposes multiple exports through package.json
exports
directive.I noticed with the
package
entryPointStrategy it will only look for a single entry point. Is there a easy way typedoc could be extended via plugins to search for every exports and create a module for each?Alternatively I'm open to workaround but I couldn't find a way to have each export be treated as a separate module. What I ended up doing was creating a separate entry point that contains all of the exports but doing that groups separate exports into the same module.
For context, those packages are built separately which is why I'm using the
packages
strategy.Suggested Solution
The text was updated successfully, but these errors were encountered: