diff --git a/src/hooks/dependencies.ts b/src/hooks/dependencies.ts index bb7cd8c..2e5e4f2 100644 --- a/src/hooks/dependencies.ts +++ b/src/hooks/dependencies.ts @@ -28,8 +28,8 @@ const registerInstallationHook = ( projectDependenciesHook.addHook(template, async ({ directoryPath }) => { let installDeps = false - if (installArg) { - installDeps = true + if (typeof installArg === 'boolean') { + installDeps = installArg } else { installDeps = await confirm({ message: 'Do you want to install project dependencies?',