Skip to content

Commit

Permalink
update install
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmanders committed Mar 3, 2025
1 parent a014556 commit b6c2d6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function handle()
match ($this->getDependencies()) {
'react' => $this->call('cloudinary:react'),
'vue' => $this->call('cloudinary:vue'),
'livewire' => $this->call('cloudinary:livewire'),
'svelte' => $this->call('cloudinary:svelte'),
default => $this->info('No JavaScript framework detected.'),
};
}
Expand All @@ -42,8 +42,8 @@ private function getDependencies(): ?string
return 'vue';
}

if (class_exists('Livewire\Livewire')) {
return 'livewire';
if (isset($dependencies['@vitejs/plugin-svelte'])) {
return 'svelte';
}

return null;
Expand Down

0 comments on commit b6c2d6d

Please sign in to comment.