perl

module-starter MANIFEST file


Is it possible to use wildcards in the MANIFEST file generated by module-starter?

Example MANIFEST file:

Build.PL
Changes
lib/My_Constant.pm
MANIFEST            This list of files
META.json
META.yml
README
t/00-load.t
t/manifest.t
t/pod-coverage.t
t/pod.t
xt/boilerplate.t

Can I use something like

t/*.t

to capture all the test files, or do I have to add them manually?


Solution

  • MANIFEST is generated by doing make manifest (after you've done perl Makefile.PL); you shouldn't manually maintain it. If you want it modified, you add to MANIFEST.SKIP or add rules to the Makefile (via Makefile.PL). See https://perldoc.perl.org/ExtUtils::MakeMaker#Distribution-Support