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 |
53
|
0 |
0 |
$self->binary eq 'pnpm' ? : |
54
|
0 |
0 |
unless -r $self->config |
60
|
0 |
0 |
unless -w $self->config |
66
|
0 |
0 |
unless ($name) |
69
|
0 |
0 |
if $info->{'version'} |
82
|
0 |
0 |
unless open my $NPM, "-|", @cmd |
83
|
0 |
0 |
if defined wantarray |
90
|
0 |
0 |
$ENV{'MOJO_NPM_CLEAN'} ? : |
91
|
0 |
0 |
$dir ? : |
|
0 |
0 |
unless chdir(my $work_dir = path($dir ? $dir : ("local", path($0)->basename))->to_abs->tap($remove_tree)->make_path) |
93
|
0 |
0 |
unless -e "node_modules" |