diff --git a/Changes b/Changes index 9c8453a..c88700d 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for {{$dist->name}} {{$NEXT}} + add exclude_filename option to exclude some more files by Git::GatherDir 0.004 2022-09-28 11:51:02+00:00 UTC fix bump version problem diff --git a/lib/Dist/Zilla/PluginBundle/Author/DERIV.pm b/lib/Dist/Zilla/PluginBundle/Author/DERIV.pm index f76cebd..d95f159 100644 --- a/lib/Dist/Zilla/PluginBundle/Author/DERIV.pm +++ b/lib/Dist/Zilla/PluginBundle/Author/DERIV.pm @@ -57,12 +57,19 @@ has allow_dirty => ( default => sub {shift->payload->{allow_dirty} // [] }, ); -sub mvp_multivalue_args{ qw(allow_dirty) } +has exclude_filename => ( + is => 'ro', + lazy => 1, + default => sub {shift->payload->{exclude_filename} // [] }, +); + + +sub mvp_multivalue_args{ qw(allow_dirty exclude_filename) } sub configure { my $self = shift; my @copy_from_build = qw(LICENSE Makefile.PL); - my @gather_exclude = (@copy_from_build, qw(README.md)); + my @gather_exclude = (@copy_from_build, qw(README.md), @{$self->exclude_filename}); my @no_index = qw(eg share shares t xt); my @allow_dirty = (@copy_from_build, @{$self->allow_dirty}, qw(Changes LICENSE README.md)); my @git_remotes = qw(github origin);