Skip to content

Commit 067b266

Browse files
authored
fix: respect --no-install flag in interactive mode (#295)
The --no-install flag was being ignored when no project name was provided (interactive mode) because promptForCreateOptions didn't pass the install option through to the final options object.
1 parent 0d352b8 commit 067b266

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/cta-cli/src/options.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ export async function promptForCreateOptions(
191191
}
192192

193193
options.git = cliOptions.git || (await selectGit())
194+
if (cliOptions.install === false) {
195+
options.install = false
196+
}
194197

195198
return options
196199
}

0 commit comments

Comments
 (0)