This section explains how to upgrade your project's Rsbuild dependencies to the latest version.
We recommend using Taze to upgrade the Rsbuild version. Taze is a CLI tool for updating npm dependencies.
Run the following command to upgrade all dependencies that include rsbuild
in their names:
npx taze --include /rsbuild/ -w
The result will look similar to:
rsbuild - 3 patch
@rsbuild/core dev ~1mo ^1.0.0 → ^1.2.0
@rsbuild/plugin-react dev ~1mo ^1.0.0 → ^1.2.0
@rsbuild/plugin-type-check dev ~1mo ^1.0.0 → ^1.2.0
ℹ changes written to package.json, run npm i to install updates.
You can also adjust the include
pattern to match specific packages. For example, to upgrade only packages under the @rsbuild
scope:
npx taze --include /@rsbuild/ -w
Here are some examples of using Taze options:
-r
option to upgrade recursively:npx taze --include /rsbuild/ -w -r
-l
to upgrade locked versions:npx taze --include /rsbuild/ -w -l
npx taze major --include /rsbuild/ -w
For more options, please refer to the taze documentation.