一键导入
upgrade-rspack
// Use when asked to upgrade `@rspack/core` in this repository to a specific version, run dependency installation and validation, then commit and create a pull request.
// Use when asked to upgrade `@rspack/core` in this repository to a specific version, run dependency installation and validation, then commit and create a pull request.
Use when adding or updating Rsbuild end-to-end tests in `e2e/cases`, including new feature coverage, bug reproduction, and regression prevention.
Create or update draft GitHub releases for the current project's main GitHub repository, then organize GitHub-generated release notes into user-friendly sections without rewriting release note items. Use for preparing, formatting, categorizing, creating, or updating GitHub release notes or draft releases, including optional highlights when the user asks for them.
Align Rspress heading anchor IDs between English and Chinese docs. Use for MDX `\{#...}` anchors, shortened hashes, redundant anchors, or dead links.
Use when asked to release `@rsbuild/core` for a specific version.
Sync uncommitted docs between `website/docs/zh` and `website/docs/en`. Use when authors update docs in one language and need to align the mirrored `.md`/`.mdx` file in the other language.
Improve English documentation under `website/docs/en` by rewriting unnatural translated sentences into clear, professional English while preserving meaning. Use when editing or polishing English docs.
| name | upgrade-rspack |
| description | Use when asked to upgrade `@rspack/core` in this repository to a specific version, run dependency installation and validation, then commit and create a pull request. |
2.0.0If the version is missing, ask for it before making changes.
Check the worktree with git status --short. If there are uncommitted edits, stop and ask the user how to proceed.
Run pnpm update @rspack/core@<version> --recursive to update the dependency across all packages in the workspace.
Run pnpm i at the repository root.
Run pnpm test and pnpm e2e. If either command fails, stop, report the failure, and do not commit or create a PR.
Review the diff and confirm it only contains the intended dependency upgrade and lockfile changes. If @rspack/core is already at the target version and there is no diff, report that nothing changed and stop.
Commit with this exact message: feat(deps): update @rspack/core to <version>
Before pushing, confirm the current branch with git branch --show-current. If it is the default branch, create and switch to a dedicated branch first. Never push the default branch directly.
If .github/PULL_REQUEST_TEMPLATE.md exists, keep its structure exactly.
Create the PR with:
feat(deps): update @rspack/core to <version>Summary: Update @rspack/core to <version>.Related Links: https://github.com/web-infra-dev/rspack/releases/tag/v<version>