getComponents method
A directory within the lib
directory that
contains the revali components
This directory will trigger a re-generation of the code when a file is added, removed, or modified
Implementation
Future<Directory> getComponents() async {
final root = await getRoot();
if (root == null) {
throw Exception('Failed to find project root');
}
return root.childDirectory('lib').childDirectory('components');
}