loads the pubspec from the file
file
static Future<PubSpec> loadFile(String file) async => PubSpec.fromJson(loadYaml(await File(file).readAsString()));