isValidServerPodProject static method

bool isValidServerPodProject(
  1. String path
)

Validate this is a ServerPod project

Implementation

static bool isValidServerPodProject(String path) {
  final serverPackage = findServerPackage(path);
  if (serverPackage == null) return false;

  // Check for server.dart
  final serverFile = File(p.join(serverPackage, 'lib', 'server.dart'));
  return serverFile.existsSync();
}