loads the pubspec from the projectDirectory
projectDirectory
static Future<PubSpec> load(Directory projectDirectory) async => await loadFile(p.join(projectDirectory.path, 'pubspec.yaml'));