upgrade-rspack

Installation
SKILL.md

Upgrade Rspack

Resolve the requested target version; ask if it is unspecified and cannot be inferred from the request. If the user limits the task to local changes or inspection, honor that scope.

Dependency update

  • Inspect the branch and worktree. Preserve unrelated edits and use an isolated checkout if needed. Create a task branch before committing when on the default branch; never commit directly to it.
  • Change the default catalog's @rspack/core entry in pnpm-workspace.yaml to ~<version>, preserving package dependencies as catalog:.
  • Run pnpm update @rspack/core --recursive to update dependencies and the lockfile. A separate install is only needed if dependency resolution or installation remains incomplete.
  • Review the catalog and lockfile diff for unintended dependency changes. If already at the requested version with no changes, report that instead of creating an empty commit or PR.

Validation

Rspack affects the entire build pipeline, so run pnpm build, pnpm test, and pnpm e2e once for the upgrade. Investigate failures and fix compatibility issues within the requested scope, then rerun the affected checks. Rebuild when source changes require fresh outputs.

Do not commit or create the PR while required checks remain failed or incomplete. Report an unresolved blocker with its evidence; ask only when resolution requires a scope or compatibility decision from the user.

Pull request

Installs
1
GitHub Stars
3.4K
First Seen
12 days ago
upgrade-rspack — web-infra-dev/rsbuild