Skip to content

Commit

Permalink
fix(dependencies): handle --no-install flag properly (#39)
Browse files Browse the repository at this point in the history
* fix(dependencies): handle --no-install flag properly

* chore: format code properly

* refactor(dependencies): improve installArgs boolean check
  • Loading branch information
emmanuelchucks authored May 15, 2024
1 parent bcc2373 commit 0116d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?',
Expand Down

0 comments on commit 0116d92

Please sign in to comment.