compile method
Compile all hooks into modules for faster execution. Hooks are compiled lazily by default but calling compile can be used to compile hooks ahead of time.
Implementation
Future<void> compile({Logger? logger}) async {
await _installDependencies();
if (preGenHook != null && !preGenHook!.module(checksum).existsSync()) {
await _compile(hook: preGenHook!, logger: logger);
}
if (postGenHook != null && !postGenHook!.module(checksum).existsSync()) {
await _compile(hook: postGenHook!, logger: logger);
}
}