You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sample project above is a monorepo with two projects: main-project and lib-project.
main-project depends on lib-project and TypeScript uses "entryPointStrategy": "packages".
The cross-project link is created as expected when packages/lib-project/tsconfig.json has "types" point to the entrypoint (the .ts file).
The cross-project link is broken when packages/lib-project/tsconfig.json has "types" point to the generated .d.ts file (in packages/lib-project/dist/).
Environment
Typedoc version: 0.25.2
TypeScript version: 5.2.2
Node.js version: v18.13.0
OS: Ubuntu 23.10
The text was updated successfully, but these errors were encountered:
personalizedrefrigerator
changed the title
Packages entry point strategy: Cross-project links fail to resolve when package.json's "types" points to a .d.ts file
Packages entry point strategy: Cross-project links fail to resolve when dependency subproject's package.json's "types" points to a .d.ts file
Oct 24, 2023
Search terms
Module resolution, entryPointStrategy, packages, broken link, links,
{@link }
, return types, parameter types.Expected Behavior
TypeDoc should resolve cross-project links or print a warning when the link cannot be resolved.
Actual Behavior
Cross-project
{@link ...}
, return types, and parameters are rendered as plain text and no warnings are logged while building.Steps to reproduce the bug
Sample project.
The sample project above is a monorepo with two projects:
main-project
andlib-project
.main-project
depends onlib-project
and TypeScript uses"entryPointStrategy": "packages"
.The cross-project link is created as expected when
packages/lib-project/tsconfig.json
has"types"
point to the entrypoint (the.ts
file).The cross-project link is broken when
packages/lib-project/tsconfig.json
has"types"
point to the generated.d.ts
file (inpackages/lib-project/dist/
).Environment
The text was updated successfully, but these errors were encountered: