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