Handle author and authors in a more sane way

There is at least one published package with both author & authors set
https://pub.dartlang.org/packages/crclib/versions/1.0.0

So we do normalization if both are set, eliminating duplicates and
providing reasonable values from both author and authors properties

Fixes https://github.com/dart-lang/pubspec_parse/issues/2
3 files changed
tree: 11de1a34391b6259ccb591320f9537ed06d31bf5
  1. pkgs/