Skip to content

Commit bafc92d

Browse files
install api optionally (#1470)
1 parent e9ca098 commit bafc92d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/Console/InstallCommand.php

+10-6
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,11 @@ protected function installLivewireStack()
154154
return false;
155155
}
156156

157-
$this->call('install:api', [
158-
'--without-migration-prompt' => true,
159-
]);
157+
if ($this->option('api')) {
158+
$this->call('install:api', [
159+
'--without-migration-prompt' => true,
160+
]);
161+
}
160162

161163
// Update Configuration...
162164
$this->replaceInFile('inertia', 'livewire', config_path('jetstream.php'));
@@ -340,9 +342,11 @@ protected function installInertiaStack()
340342
return false;
341343
}
342344

343-
$this->call('install:api', [
344-
'--without-migration-prompt' => true,
345-
]);
345+
if ($this->option('api')) {
346+
$this->call('install:api', [
347+
'--without-migration-prompt' => true,
348+
]);
349+
}
346350

347351
// Install NPM packages...
348352
$this->updateNodePackages(function ($packages) {

0 commit comments

Comments
 (0)