1 package inc::RequireAuthorDeps;
3 use Class::Load qw(load_class);
6 use CPAN::Meta::Requirements;
9 with 'Dist::Zilla::Role::BeforeRelease';
14 $self->log("Ensuring all author dependencies are installed");
15 my $req = CPAN::Meta::Requirements->new;
16 my $prereqs = $self->zilla->prereqs;
18 for my $phase (qw(build test configure runtime develop)) {
19 $req->add_requirements($prereqs->requirements_for($phase, 'requires'));
22 for my $mod (grep { $_ ne 'perl' } $req->required_modules) {