);
use File::Temp qw(tempfile tempdir);
use File::Which;
use IPC::System::Options qw(system);
use JSON::MaybeXS;
use List::Util qw(first);
use Moose;
with (
'Dist::Zilla::Role::FileFinderUser' =>
$self->write_modules_to_dir;
my $mods_tempdir = $self->written_modules_dir;
# the --json output is so that we can read the list of included modules
my @depak_cmd = (
"depak",
"--include-dir", $mods_tempdir,
"-i", $source, "-o", $target, "--overwrite",
"--json",
);
if (-f "depak.conf") {
push @depak_cmd, (
"--config-profile", $