Skip to content

Commit e755e42

Browse files
committed
minor performance improvement
Took 3 minutes
1 parent 4da7c3d commit e755e42

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Commands/InstallCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function handle(): int
2727
$this->requireComposerPackages('laravel/breeze:^1.9');
2828
shell_exec('php artisan breeze:install vue');
2929

30-
$this->updateNodePackages(function ($packages) {
30+
self::updateNodePackages(static function ($packages) {
3131
unset(
3232
$packages['@inertiajs/vue3'],
3333
$packages['@vitejs/plugin-vue'],

src/Traits/InteractsWithNodePackages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ trait InteractsWithNodePackages
1414
*/
1515
protected static function updateNodePackages(callable $callback, $dev = true)
1616
{
17-
if (! file_exists(base_path('package.json'))) {
17+
if (! is_file(base_path('package.json'))) {
1818
return;
1919
}
2020

0 commit comments

Comments
 (0)