pubspecExists function

bool pubspecExists(
  1. Directory projectDir
)

Check if the pubspec.yaml file exists

Implementation

bool pubspecExists(Directory projectDir) =>
    File('${projectDir.path}/pubspec.yaml').existsSync();