track implicitly created types as being created in the right place
[gitmo/Moose.git] / inc / TestRelease.pm
1 package inc::TestRelease;
2
3 use Moose;
4
5 extends 'Dist::Zilla::Plugin::TestRelease';
6
7 around before_release => sub {
8     my $orig = shift;
9     my $self = shift;
10
11     local $ENV{MOOSE_TEST_MD} = $self->zilla->is_trial
12         ? $ENV{MOOSE_TEST_MD}
13         : 1;
14     local $ENV{AUTHOR_TESTING} = $self->zilla->is_trial
15         ? $ENV{AUTHOR_TESTING}
16         : 1;
17
18     $self->$orig(@_);
19 };
20
21 1;