create-whop-kit 0.9.6 → 0.9.8
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.
|
@@ -189,13 +189,16 @@ async function createGitHubRepo(projectDir, projectName) {
|
|
|
189
189
|
}
|
|
190
190
|
s = p2.spinner();
|
|
191
191
|
s.start("Pushing code to GitHub...");
|
|
192
|
-
let pushOk =
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
192
|
+
let pushOk = false;
|
|
193
|
+
for (const delay of [0, 5e3, 1e4]) {
|
|
194
|
+
if (delay > 0) {
|
|
195
|
+
s.stop(`Waiting for GitHub to propagate (${delay / 1e3}s)...`);
|
|
196
|
+
await new Promise((r) => setTimeout(r, delay));
|
|
197
|
+
s = p2.spinner();
|
|
198
|
+
s.start("Pushing code to GitHub...");
|
|
199
|
+
}
|
|
198
200
|
pushOk = exec("git push -u origin main", projectDir, 3e4).success;
|
|
201
|
+
if (pushOk) break;
|
|
199
202
|
}
|
|
200
203
|
if (!pushOk) {
|
|
201
204
|
s.stop("Could not push (push manually with: git push -u origin main)");
|
|
@@ -361,9 +364,6 @@ async function runDeployPipeline(options) {
|
|
|
361
364
|
}
|
|
362
365
|
}
|
|
363
366
|
githubRepoUrl = await createGitHubRepo(projectDir, repoFullName);
|
|
364
|
-
if (githubRepoUrl) {
|
|
365
|
-
p3.log.success(`Code pushed to ${pc3.cyan(githubRepoUrl)}`);
|
|
366
|
-
}
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
}
|
package/dist/cli-create.js
CHANGED
|
@@ -522,11 +522,11 @@ var init_default = defineCommand({
|
|
|
522
522
|
const result = await p5.select({
|
|
523
523
|
message: "Which database?",
|
|
524
524
|
options: [
|
|
525
|
-
{ value: "neon", label: "Neon (recommended)"
|
|
526
|
-
{ value: "supabase", label: "Supabase"
|
|
527
|
-
{ value: "prisma-postgres", label: "Prisma Postgres"
|
|
528
|
-
{ value: "manual", label: "I have a connection string"
|
|
529
|
-
{ value: "later", label: "Configure later"
|
|
525
|
+
{ value: "neon", label: "Neon (recommended)" },
|
|
526
|
+
{ value: "supabase", label: "Supabase" },
|
|
527
|
+
{ value: "prisma-postgres", label: "Prisma Postgres" },
|
|
528
|
+
{ value: "manual", label: "I have a connection string" },
|
|
529
|
+
{ value: "later", label: "Configure later" }
|
|
530
530
|
]
|
|
531
531
|
});
|
|
532
532
|
if (isCancelled(result)) {
|
|
@@ -683,7 +683,7 @@ var init_default = defineCommand({
|
|
|
683
683
|
});
|
|
684
684
|
if (!isCancelled(deployChoice) && deployChoice === "deploy") {
|
|
685
685
|
deployAttempted = true;
|
|
686
|
-
const { runDeployPipeline } = await import("./deploy-
|
|
686
|
+
const { runDeployPipeline } = await import("./deploy-S2AJPM54.js");
|
|
687
687
|
deployResult = await runDeployPipeline({
|
|
688
688
|
projectDir,
|
|
689
689
|
projectName,
|
package/dist/cli-kit.js
CHANGED