Skip to content

Commit 655aad8

Browse files
authored
fix: disable confirmation to create tsconfig.json on tsconfig action (#12)
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 8c88627 commit 655aad8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Console/DevToolCommand.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function handle(Filesystem $filesystem, PackageManifest $manifest): int
4646
'install' => $this->installNpmDependencies($filesystem, $manifest),
4747
'enable-vue-devtool' => $this->enablesVueDevTool($filesystem, $manifest),
4848
'disable-vue-devtool' => $this->disablesVueDevTool($filesystem, $manifest),
49-
'tsconfig' => $this->installTypeScriptConfiguration($filesystem, $manifest),
49+
'tsconfig' => $this->installTypeScriptConfiguration($filesystem, $manifest, confirmation: false),
5050
default => throw new InvalidArgumentException(sprintf('Unable to handle [%s] action', $action)),
5151
};
5252
}
@@ -69,13 +69,13 @@ protected function installNovaWorkbench(Filesystem $filesystem, PackageManifest
6969
/**
7070
* Install `tsconfig.json` configuration.
7171
*/
72-
protected function installTypeScriptConfiguration(Filesystem $filesystem, PackageManifest $manifest): int
72+
protected function installTypeScriptConfiguration(Filesystem $filesystem, PackageManifest $manifest, bool $confirmation = true): int
7373
{
7474
(new GeneratesFile(
7575
filesystem: $filesystem,
7676
components: $this->components,
7777
force: false,
78-
confirmation: true,
78+
confirmation: $confirmation,
7979
))->handle(
8080
join_paths(__DIR__, 'stubs', 'tsconfig.json'),
8181
package_path('tsconfig.json')
@@ -131,7 +131,7 @@ protected function installNpmDependencies(Filesystem $filesystem, PackageManifes
131131
], package_path('tailwind.config.js'));
132132
}
133133

134-
return $this->installTypeScriptConfiguration($filesystem, $manifest);
134+
return $this->installTypeScriptConfiguration($filesystem, $manifest, confirmation: true);
135135
}
136136

137137
/**

0 commit comments

Comments
 (0)