runBuildRunner static method
Run build_runner in the given projectRoot directory after feature generation.
Implementation
static Future<void> runBuildRunner({required Directory projectRoot}) async {
stdout.writeln('\nā Running build_runner...');
try {
await PostCreateCodegen.runBuildRunner(projectRoot.path);
} on Exception catch (error) {
stderr.writeln('ā build_runner failed');
stderr.writeln(error);
return;
}
stdout.writeln('ā
build_runner completed');
}