Skip to content

Commit 4176fe8

Browse files
committed
fix: update
1 parent ffad94e commit 4176fe8

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

index.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -683,13 +683,16 @@ async function init() {
683683
}),
684684
)
685685

686-
result.needsAutomaticallyInstallDependencies = await unwrapPrompt(
687-
confirm({
688-
message: language.needsAutomaticallyInstallDependencies.message,
689-
// TODO: default to true sometime in the future
690-
initialValue: false,
691-
}),
692-
)
686+
if (!args.length) {
687+
// skip snapshot pending prompts
688+
result.needsAutomaticallyInstallDependencies = await unwrapPrompt(
689+
confirm({
690+
message: language.needsAutomaticallyInstallDependencies.message,
691+
// TODO: default to true sometime in the future
692+
initialValue: false,
693+
}),
694+
)
695+
}
693696

694697
let outroMessage = `${language.infos.done}\n\n`
695698
if (root !== cwd) {

0 commit comments

Comments
 (0)