line |
true |
false |
branch |
21
|
0 |
0 |
unless -r $self->config |
23
|
0 |
0 |
$self->binary eq 'pnpm' ? : |
31
|
0 |
0 |
if ref $dependencies eq 'ARRAY' |
32
|
0 |
0 |
unless $dependencies->{$_} |
33
|
0 |
0 |
unless (eval {
do {
my $NPM = $self->_run(@args);
$dependencies = decode_json(join('', grep({not /WARN/u;} readline $NPM)));
$dependencies = $dependencies->[0] if ref $dependencies eq 'ARRAY';
$dependencies = {map({%{{} unless $dependencies->{$_};};} 'devDependencies', 'dependencies')}
}
}) |
52
|
0 |
0 |
if -r $self->config |
54
|
0 |
0 |
unless -r $self->config |
60
|
0 |
0 |
unless -w $self->config |
63
|
0 |
0 |
unless ($name) |
66
|
0 |
0 |
if $info->{'version'} |
79
|
0 |
0 |
unless open my $NPM, '-|', @cmd |
80
|
0 |
0 |
if defined wantarray |
87
|
0 |
0 |
$ENV{'MOJO_NPM_CLEAN'} ? : |
88
|
0 |
0 |
$dir ? : |
|
0 |
0 |
unless chdir(my $work_dir = path($dir ? $dir : ('local', path($0)->basename))->to_abs->tap($remove_tree)->make_path) |
90
|
0 |
0 |
unless -e 'node_modules' |