Skip to content

Commit 6ca9070

Browse files
authored
it copies jsconfig.json to base path for inertia stack installation. (#1317)
1 parent 04e2916 commit 6ca9070

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/Console/InstallCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@ protected function installInertiaStack()
371371
copy(__DIR__.'/../../stubs/inertia/postcss.config.js', base_path('postcss.config.js'));
372372
copy(__DIR__.'/../../stubs/inertia/vite.config.js', base_path('vite.config.js'));
373373

374+
// jsconfig.json...
375+
copy(__DIR__.'/../../stubs/inertia/jsconfig.json', base_path('jsconfig.json'));
376+
374377
// Directories...
375378
(new Filesystem)->ensureDirectoryExists(app_path('Actions/Fortify'));
376379
(new Filesystem)->ensureDirectoryExists(app_path('Actions/Jetstream'));

stubs/inertia/jsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"@/*": ["resources/js/*"]
6+
}
7+
},
8+
"exclude": ["node_modules", "public"]
9+
}

0 commit comments

Comments
 (0)