create-whop-kit 0.9.7 → 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 = exec("git push -u origin main", projectDir, 3e4).success;
193
- if (!pushOk) {
194
- s.stop("Push failed, retrying...");
195
- await new Promise((r) => setTimeout(r, 3e3));
196
- s = p2.spinner();
197
- s.start("Retrying push...");
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
  }
@@ -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-RKFHMMX4.js");
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
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-HOQ5QQ2M.js";
10
10
  import {
11
11
  runDeployPipeline
12
- } from "./chunk-WU4NOKT4.js";
12
+ } from "./chunk-YPPQ4WEI.js";
13
13
  import {
14
14
  detectPackageManager,
15
15
  exec
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runDeployPipeline
4
- } from "./chunk-WU4NOKT4.js";
4
+ } from "./chunk-YPPQ4WEI.js";
5
5
  import "./chunk-42L7PRMT.js";
6
6
  export {
7
7
  runDeployPipeline
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-whop-kit",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "description": "Scaffold and manage Whop-powered apps with whop-kit",
5
5
  "type": "module",
6
6
  "license": "MIT",