::AttributeShortcuts;
use Types::Standard qw/Str HashRef/;
use Types::URI qw/Uri/;
use JSON::MaybeXS 'decode_json';
use Path::Tiny;
with 'Badge::Depot';
has dist => (
is => 'ro',
isa => Str,
sion,
};
}
return {} if !path('META.json')->exists;
my $json = path('META.json')->slurp_utf8;
my $data = decode_json($json);
return {} if !exists $data->{'name'} || !exi
sion> and C<dist> are set to the values in the Dist::Zilla object.
=item 2
If there is a C<META.json> in the distribution root then that is used to set C<version> and C<dist>.
=back
If neither of