getPubspecFile static method
Implementation
static Future<File> getPubspecFile(String packagePath) async {
final pubspecFile = File(path.join(packagePath, "pubspec.yaml").fixPath);
if (!pubspecFile.existsSync()) {
throw CopierException("`${pubspecFile.path}` not found.");
}
return pubspecFile;
}