Skip to content

fix(create-rslib): remove rspress-js template#1464

Merged
Timeless0911 merged 1 commit intomainfrom
remove-js
Jan 30, 2026
Merged

fix(create-rslib): remove rspress-js template#1464
Timeless0911 merged 1 commit intomainfrom
remove-js

Conversation

@Timeless0911
Copy link
Copy Markdown
Contributor

Summary

Rspress template only work on TypeScript since it based on types.

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings January 30, 2026 10:04
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

This PR removes the Rspress template for JavaScript (react-js) projects, keeping only the TypeScript variant. The change is motivated by the fact that Rspress's API documentation generation relies on react-docgen-typescript, which requires TypeScript type information to function properly.

Changes:

  • Deleted all files in the template-rspress/react-js directory (rspress.config.js, package.json, and documentation files)
  • Updated src/index.ts to restrict Rspress tool selection to react-ts templates only
  • Updated template-rspress/AGENTS.md to clarify that running the doc command also starts Rslib in watch mode

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/create-rslib/template-rspress/react-js/rspress.config.js Deleted rspress configuration file for JavaScript template
packages/create-rslib/template-rspress/react-js/package.json Deleted package.json for JavaScript rspress template
packages/create-rslib/template-rspress/react-js/docs/index.mdx Deleted documentation index file
packages/create-rslib/template-rspress/react-js/docs/_meta.json Deleted documentation metadata file
packages/create-rslib/template-rspress/react-js/docs/Button.mdx Deleted Button component documentation
packages/create-rslib/template-rspress/AGENTS.md Added clarification about Rslib watch mode starting with doc command
packages/create-rslib/src/index.ts Updated condition to only allow rspress for react-ts templates

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

@Timeless0911 Timeless0911 merged commit e744a7c into main Jan 30, 2026
18 checks passed
@Timeless0911 Timeless0911 deleted the remove-js branch January 30, 2026 10:19
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.

2 participants