Skip to content

Commit

Permalink
install api optionally (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
hafezdivandari authored Apr 5, 2024
1 parent e9ca098 commit bafc92d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,11 @@ protected function installLivewireStack()
return false;
}

$this->call('install:api', [
'--without-migration-prompt' => true,
]);
if ($this->option('api')) {
$this->call('install:api', [
'--without-migration-prompt' => true,
]);
}

// Update Configuration...
$this->replaceInFile('inertia', 'livewire', config_path('jetstream.php'));
Expand Down Expand Up @@ -340,9 +342,11 @@ protected function installInertiaStack()
return false;
}

$this->call('install:api', [
'--without-migration-prompt' => true,
]);
if ($this->option('api')) {
$this->call('install:api', [
'--without-migration-prompt' => true,
]);
}

// Install NPM packages...
$this->updateNodePackages(function ($packages) {
Expand Down

0 comments on commit bafc92d

Please sign in to comment.