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

monorepo & entry points #2091

Closed
fryorcraken opened this issue Nov 2, 2022 · 1 comment
Closed

monorepo & entry points #2091

fryorcraken opened this issue Nov 2, 2022 · 1 comment
Labels
question Question about functionality

Comments

@fryorcraken
Copy link

Search terms

monorepo, entrypoint, entrypoints, entry points, packages, exports map

Question

Using a monorepo, my exports map is as follows:

  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js"
    },
    "./lib/enr": {
      "types": "./dist/lib/enr/index.d.ts",
      "import": "./dist/lib/enr/index.js"
    },
    "./lib/peer_discovery_dns": {
      "types": "./dist/lib/peer_discovery_dns/index.d.ts",
      "import": "./dist/lib/peer_discovery_dns/index.js"
    },
}

AFAIK, the only valid way to set the entryPoint is with a string:

  "typedoc": {
    "entryPoint": "./src/index.ts"
  },

Due to #2090, it seems that I have to specify entryPoint as typedoc is not able to find the source files using typescript.

How do I convert my exports map to a single string in typedoc.entryPoint?

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Nov 3, 2022

Packages mode today doesn't support multiple entry points for a package - this is something I'm looking to rectify with 0.24, along with adding direct support for the exports field, which is tracked in #1937.

@Gerrit0 Gerrit0 closed this as completed Nov 13, 2022
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