Skip to content

docs: enhance tsup migration guide with detailed examples#1504

Merged
Timeless0911 merged 1 commit intomainfrom
vk/5e00-tsup
Mar 2, 2026
Merged

docs: enhance tsup migration guide with detailed examples#1504
Timeless0911 merged 1 commit intomainfrom
vk/5e00-tsup

Conversation

@Timeless0911
Copy link
Copy Markdown
Contributor

@Timeless0911 Timeless0911 commented Mar 2, 2026

Summary

This PR enhances the tsup to Rslib migration documentation for both English and Chinese by:

  • Adding a new "Migration example" section that demonstrates how a typical tsup.config.ts configuration (including multiple formats, dts generation, and clean options) maps to its equivalent rslib.config.ts.
  • Adding a new "Validating results" section that guides developers on how to verify their migration using npm run build and debugging tools.
  • Refining the "Create configuration file" section based on review feedback.

These updates help developers transition more seamlessly by providing concrete code examples and clear validation instructions.

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings March 2, 2026 08:30
@Timeless0911 Timeless0911 changed the title 润色一下 tsup 的迁移文档 (vibe-kanban) docs: enhance tsup migration guide with detailed examples Mar 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

本 PR 旨在补充并统一 Rslib 的迁移文档表述,重点为 tsup 迁移文档增加更完整的迁移示例,帮助读者将典型 tsup 配置映射到 Rslib 配置。

Changes:

  • 为中英文 tsup 迁移文档新增“示例 / Example”与“验证结果 / Validating results”章节,提供 tsup → Rslib 的配置迁移样例。
  • 修正文档排版与措辞一致性问题(如 package.json 代码格式、debug mode 链接前后空格、outputs/artifacts 用词统一)。
  • 微调 tsc 迁移文档中的段落格式与用词,使其与其它迁移文档保持一致。

Reviewed changes

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

File Description
website/docs/zh/guide/migration/tsup.mdx 新增迁移示例与验证章节,增强中文 tsup 迁移指引的可操作性
website/docs/zh/guide/migration/tsc.mdx 修正文档排版(链接前后空格等)
website/docs/en/guide/migration/tsup.mdx 新增迁移示例与验证章节,并修正 npm scripts 段落表述
website/docs/en/guide/migration/tsc.mdx 统一用词(artifacts → outputs)并修正排版

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 2, 2026

Deploying rslib with  Cloudflare Pages  Cloudflare Pages

Latest commit: 54aa6fe
Status: ✅  Deploy successful!
Preview URL: https://eae3a987.rslib.pages.dev
Branch Preview URL: https://vk-5e00-tsup.rslib.pages.dev

View logs

@Timeless0911 Timeless0911 enabled auto-merge (squash) March 2, 2026 08:38
@Timeless0911 Timeless0911 merged commit 883028b into main Mar 2, 2026
12 checks passed
@Timeless0911 Timeless0911 deleted the vk/5e00-tsup branch March 2, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants