Skip to content
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

How to correctly use multiple entrypoints with root entry? #2173

Closed
zfy0701 opened this issue Feb 17, 2023 · 2 comments
Closed

How to correctly use multiple entrypoints with root entry? #2173

zfy0701 opened this issue Feb 17, 2023 · 2 comments
Labels
question Question about functionality

Comments

@zfy0701
Copy link

zfy0701 commented Feb 17, 2023

Search terms

multiple entrypoints

Question

My typedoc configs looks like this:
{
"entryPoints": [
"./src/index.ts",
"./src/core/index.ts",
]
}

the generated doc then will give an entry called
image

instead just putting them as root module, how to fix this?

@zfy0701 zfy0701 added the question Question about functionality label Feb 17, 2023
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Feb 24, 2023

You can rename modules with the @module tag. I suspect what you really want is a single entry point that looks like this though:

// api.ts
export * from "./index"
export * as core from "./core/index"

@Gerrit0 Gerrit0 closed this as completed Mar 5, 2023
@zfy0701
Copy link
Author

zfy0701 commented Mar 9, 2023

not exactly, I use multiple export for package.json, that why I have different modules so I could do

import * from "my_package"
import * from "my_package/a"
import * from "my_package/b"

so I don't want a, b show as namespace. they need to be module

rename module doesn't work well
the best thing I can do for now is rename it as '.' and it will show like this:

image

but want I really want is just make them as root package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about functionality
Projects
None yet
Development

No branches or pull requests

2 participants