Skip to content

Commit

Permalink
it copies jsconfig.json to base path for inertia stack installation. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aknEvrnky authored May 30, 2023
1 parent 04e2916 commit 6ca9070
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ protected function installInertiaStack()
copy(__DIR__.'/../../stubs/inertia/postcss.config.js', base_path('postcss.config.js'));
copy(__DIR__.'/../../stubs/inertia/vite.config.js', base_path('vite.config.js'));

// jsconfig.json...
copy(__DIR__.'/../../stubs/inertia/jsconfig.json', base_path('jsconfig.json'));

// Directories...
(new Filesystem)->ensureDirectoryExists(app_path('Actions/Fortify'));
(new Filesystem)->ensureDirectoryExists(app_path('Actions/Jetstream'));
Expand Down
9 changes: 9 additions & 0 deletions stubs/inertia/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["resources/js/*"]
}
},
"exclude": ["node_modules", "public"]
}

0 comments on commit 6ca9070

Please sign in to comment.