Skip to content

docs: clarify declaration entry resolution - #1792

Merged
Timeless0911 merged 2 commits into
mainfrom
david/docs-clarify-dts-alias-resolution
Jul 23, 2026
Merged

Timeless0911 merged 2 commits into
mainfrom
david/docs-clarify-dts-alias-resolution

Conversation

@Timeless0911

Copy link
Copy Markdown
Contributor

Summary

The redirect.dts.extension docs currently imply that directory-based path mappings always need a concrete declaration entry, even though Rslib probes for an index declaration file. This PR clarifies the /index probing behavior and when package metadata-based entries must be configured explicitly in both the English and Chinese docs.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings July 23, 2026 06:38
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

Deploying rslib with  Cloudflare Pages  Cloudflare Pages

Latest commit: a348dbc
Status: ✅  Deploy successful!
Preview URL: https://1caa36d8.rslib.pages.dev
Branch Preview URL: https://david-docs-clarify-dts-alias.rslib.pages.dev

View logs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Clarifies redirect.dts.extension documentation to explain how Rslib resolves declaration entries for directory-based paths (automatic /index probing vs. explicit package-metadata-based entries), in both English and Chinese docs.

Changes:

  • Document that directory targets only probe for an index declaration file.
  • Clarify that package.json metadata (types, exports.types, typesVersions) is not used for directory targets unless the path points directly to the entry.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
website/docs/zh/config/lib/redirect.mdx Updates Chinese docs to clarify directory /index probing vs. package metadata resolution.
website/docs/en/config/lib/redirect.mdx Updates English docs to clarify directory /index probing vs. package metadata resolution.

Comment thread website/docs/zh/config/lib/redirect.mdx Outdated
Comment thread website/docs/en/config/lib/redirect.mdx Outdated
@Timeless0911
Timeless0911 merged commit 7d3ce90 into main Jul 23, 2026
12 checks passed
@Timeless0911
Timeless0911 deleted the david/docs-clarify-dts-alias-resolution branch July 23, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Sponsor
SponsoredKunjungi sekarang
Promo