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;