private async Task SaveJsonAsync(Nuget2BazelConfig json)
 {
     using (var writer = new StreamWriter(JsonConfigPath, false, Encoding.UTF8))
     {
         await writer.WriteAsync(JsonConvert.SerializeObject(json, Formatting.Indented));
     }
 }
 private static IEnumerable <PackageDependency> GetDependencies(Nuget2BazelConfig json)
 {
     return(json.externals.Select(x => x.Key.Split("/"))
            .Select(y => new PackageDependency(y[0], VersionRange.Parse(y[1])))
            .Union(json.dependencies.Select(z => new PackageDependency(z.Key, VersionRange.Parse(z.Value)))));
 }