diff --git a/src/Exceptions/ManifestNotFound.php b/src/Exceptions/ManifestNotFound.php index e66a749..9b7844c 100644 --- a/src/Exceptions/ManifestNotFound.php +++ b/src/Exceptions/ManifestNotFound.php @@ -27,11 +27,12 @@ public function getSolution(): Solution $baseCommand = collect([ 'pnpm-lock.yaml' => 'pnpm', 'yarn.lock' => 'yarn', - ])->reduce(function ($_, $command, $lockFile) { + ])->reduce(function ($default, $command, $lockFile) { if (File::exists(base_path($lockFile))) { return $command; } - return $_; + + return $default; }, 'npm run'); return App::environment('local')