betterstart-cli 0.0.14 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -20715,27 +20715,30 @@ ${styleText("dim", "Press [Spacebar] to select/unselect")}`,
20715
20715
  p8.cancel("Setup cancelled.");
20716
20716
  process.exit(0);
20717
20717
  }
20718
- const selectedIntegrations = await p8.multiselect({
20719
- message: "Select integrations",
20718
+ const selectedEmailProvider = await p8.select({
20719
+ message: `Which email provider do you want to set up?
20720
+ ${styleText(
20721
+ "dim",
20722
+ "Auth + Forms email delivery"
20723
+ )}`,
20720
20724
  options: [
20721
20725
  {
20722
20726
  value: "resend",
20723
- label: "Resend",
20724
- hint: "Auth + Forms email delivery"
20727
+ label: "Resend"
20725
20728
  },
20726
20729
  {
20727
- value: "mailchimp",
20728
- label: "Mailchimp",
20729
- hint: "Form audience sync"
20730
+ value: "cloudflare",
20731
+ label: `Cloudflare ${styleText("dim", "(coming soon)")}`,
20732
+ disabled: true
20730
20733
  }
20731
20734
  ],
20732
- required: false,
20733
- initialValues: []
20735
+ initialValue: "resend"
20734
20736
  });
20735
- if (p8.isCancel(selectedIntegrations)) {
20737
+ if (p8.isCancel(selectedEmailProvider)) {
20736
20738
  p8.cancel("Setup cancelled.");
20737
20739
  process.exit(0);
20738
20740
  }
20741
+ const selectedIntegrations = selectedEmailProvider === "resend" ? ["resend"] : [];
20739
20742
  const integrations = storage === "r2" ? [...selectedIntegrations, "r2"] : selectedIntegrations;
20740
20743
  return {
20741
20744
  plugins: selectedPlugins,