use :PerlExecFiles filefinder whenever possible
Stephan Loyd
6 years ago
8 | 8 | with ( |
9 | 9 | 'Dist::Zilla::Role::FileMunger', |
10 | 10 | 'Dist::Zilla::Role::FileFinderUser' => { |
11 | default_finders => [ ':InstallModules', ':ExecFiles' ], | |
11 | default_finders => [ | |
12 | ':InstallModules', | |
13 | ( | |
14 | eval { Dist::Zilla::Dist::Builder->VERSION('5.038'); 1 } | |
15 | ? ':PerlExecFiles' | |
16 | : ':ExecFiles' | |
17 | ) | |
18 | ], | |
12 | 19 | }, |
13 | 20 | 'Dist::Zilla::Role::PPI', |
14 | 21 | ); |
215 | 222 | |
216 | 223 | tells which files to munge, see L<Dist::Zilla::Role::FileMunger> |
217 | 224 | |
225 | =item finder | |
226 | ||
227 | Override the default L<FileFinder|Dist::Zilla::Role::FileFinder> for | |
228 | finding files to check and update. The default value is C<:InstallModules> | |
229 | and C<:PerlExecFiles> (when available; otherwise C<:ExecFiles>) | |
230 | -- see also L<Dist::Zilla::Plugin::ExecDir>, to make sure the script | |
231 | files are properly marked as executables for the installer. | |
232 | ||
218 | 233 | =back |
219 | 234 | |
220 | 235 | =cut |