| name | build-runner |
| description | Executes `dart run build_runner build -d` to generate code for packages like Freezed, JSON Serializable, and Riverpod. |
Instructions
When the user creates or modifies files annotated with @freezed, @JsonSerializable, or @riverpod, or asks to run the build runner, do the following:
- Open a terminal (use
run_in_terminal tool).
- Execute the following command in the root of the Flutter project:
dart run build_runner build -d
- The
-d flag automatically deletes conflicting outputs, solving 90% of build_runner caching errors.
- Report the result (success or failure) to the user based on the terminal output.