getPubspecFile static method

Future<File> getPubspecFile(
  1. String packagePath
)

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;
}