Skip to content

Commit

Permalink
Upgrade to Inertia V2 (#443)
Browse files Browse the repository at this point in the history
* Upgrade to Inertia V2

* Pin typescript to v5.5.4
  • Loading branch information
adamjgriffith authored Dec 14, 2024
1 parent e3cb2f8 commit d597029
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Console/InstallsInertiaStacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ trait InstallsInertiaStacks
protected function installInertiaVueStack()
{
// Install Inertia...
if (! $this->requireComposerPackages(['inertiajs/inertia-laravel:^1.0', 'laravel/sanctum:^4.0', 'tightenco/ziggy:^2.0'])) {
if (! $this->requireComposerPackages(['inertiajs/inertia-laravel:^2.0', 'laravel/sanctum:^4.0', 'tightenco/ziggy:^2.0'])) {
return 1;
}

// NPM Packages...
$this->updateNodePackages(function ($packages) {
return [
'@inertiajs/vue3' => '^1.0.0',
'@inertiajs/vue3' => '^2.0.0',
'@tailwindcss/forms' => '^0.5.3',
'@vitejs/plugin-vue' => '^5.0.0',
'autoprefixer' => '^10.4.12',
Expand All @@ -35,7 +35,7 @@ protected function installInertiaVueStack()
if ($this->option('typescript')) {
$this->updateNodePackages(function ($packages) {
return [
'typescript' => '^5.6.3',
'typescript' => '~5.5.3',
'vue-tsc' => '^2.0.24',
] + $packages;
});
Expand Down Expand Up @@ -226,15 +226,15 @@ protected function installInertiaVueSsrStack()
protected function installInertiaReactStack()
{
// Install Inertia...
if (! $this->requireComposerPackages(['inertiajs/inertia-laravel:^1.0', 'laravel/sanctum:^4.0', 'tightenco/ziggy:^2.0'])) {
if (! $this->requireComposerPackages(['inertiajs/inertia-laravel:^2.0', 'laravel/sanctum:^4.0', 'tightenco/ziggy:^2.0'])) {
return 1;
}

// NPM Packages...
$this->updateNodePackages(function ($packages) {
return [
'@headlessui/react' => '^2.0.0',
'@inertiajs/react' => '^1.0.0',
'@inertiajs/react' => '^2.0.0',
'@tailwindcss/forms' => '^0.5.3',
'@vitejs/plugin-react' => '^4.2.0',
'autoprefixer' => '^10.4.12',
Expand Down

0 comments on commit d597029

Please sign in to comment.