@@ -46,7 +46,7 @@ public function handle(Filesystem $filesystem, PackageManifest $manifest): int
46
46
'install ' => $ this ->installNpmDependencies ($ filesystem , $ manifest ),
47
47
'enable-vue-devtool ' => $ this ->enablesVueDevTool ($ filesystem , $ manifest ),
48
48
'disable-vue-devtool ' => $ this ->disablesVueDevTool ($ filesystem , $ manifest ),
49
- 'tsconfig ' => $ this ->installTypeScriptConfiguration ($ filesystem , $ manifest ),
49
+ 'tsconfig ' => $ this ->installTypeScriptConfiguration ($ filesystem , $ manifest, confirmation: false ),
50
50
default => throw new InvalidArgumentException (sprintf ('Unable to handle [%s] action ' , $ action )),
51
51
};
52
52
}
@@ -69,13 +69,13 @@ protected function installNovaWorkbench(Filesystem $filesystem, PackageManifest
69
69
/**
70
70
* Install `tsconfig.json` configuration.
71
71
*/
72
- protected function installTypeScriptConfiguration (Filesystem $ filesystem , PackageManifest $ manifest ): int
72
+ protected function installTypeScriptConfiguration (Filesystem $ filesystem , PackageManifest $ manifest, bool $ confirmation = true ): int
73
73
{
74
74
(new GeneratesFile (
75
75
filesystem: $ filesystem ,
76
76
components: $ this ->components ,
77
77
force: false ,
78
- confirmation: true ,
78
+ confirmation: $ confirmation ,
79
79
))->handle (
80
80
join_paths (__DIR__ , 'stubs ' , 'tsconfig.json ' ),
81
81
package_path ('tsconfig.json ' )
@@ -131,7 +131,7 @@ protected function installNpmDependencies(Filesystem $filesystem, PackageManifes
131
131
], package_path ('tailwind.config.js ' ));
132
132
}
133
133
134
- return $ this ->installTypeScriptConfiguration ($ filesystem , $ manifest );
134
+ return $ this ->installTypeScriptConfiguration ($ filesystem , $ manifest, confirmation: true );
135
135
}
136
136
137
137
/**
0 commit comments