betterstart-cli 0.0.14 → 0.0.15
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 +13 -10
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
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
|
|
20719
|
-
message:
|
|
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: "
|
|
20728
|
-
label: "
|
|
20729
|
-
|
|
20730
|
+
value: "cloudflare",
|
|
20731
|
+
label: "Cloudflare",
|
|
20732
|
+
disabled: true
|
|
20730
20733
|
}
|
|
20731
20734
|
],
|
|
20732
|
-
|
|
20733
|
-
initialValues: []
|
|
20735
|
+
initialValue: "resend"
|
|
20734
20736
|
});
|
|
20735
|
-
if (p8.isCancel(
|
|
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,
|