From 1d852a941463ee022f71d45bee141ed41187a85f Mon Sep 17 00:00:00 2001 From: jtdLab <72231111+jtdLab@users.noreply.github.com> Date: Mon, 24 Jul 2023 14:50:31 +0200 Subject: [PATCH] Run `build_runner clean` inside `expectBuildCleanImpl` --- lib/src/impl.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/impl.dart b/lib/src/impl.dart index b72e420..aed9be7 100644 --- a/lib/src/impl.dart +++ b/lib/src/impl.dart @@ -40,6 +40,8 @@ Future expectBuildCleanImpl( reason: 'The working directory should be clean before running build.', ); + await _runProc(dartPath, ['run', 'build_runner', 'clean'], workingDir); + var executable = command.first; if (executable == 'DART') { executable = dartPath;