create-whop-kit 1.0.4 → 1.0.5

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.
@@ -77,49 +77,20 @@ async function vercelDeploy(projectDir) {
77
77
  p.log.error("Vercel deployment failed. Check the build output above.");
78
78
  return null;
79
79
  }
80
- const s = p.spinner();
81
- s.start("Getting deployment URL...");
82
- const ls = exec("vercel ls --json", projectDir, 15e3);
83
- if (ls.success) {
84
- try {
85
- const data = JSON.parse(ls.stdout);
86
- const prod = Array.isArray(data) ? data.find((d) => d.target === "production") : null;
87
- if (prod?.url) {
88
- const url = `https://${prod.url}`;
89
- s.stop(`Deployed to ${pc.cyan(url)}`);
90
- return url;
91
- }
92
- } catch {
93
- }
94
- }
95
- const inspect = exec("vercel inspect --json", projectDir, 15e3);
96
- if (inspect.success) {
97
- const urlMatch = inspect.stdout.match(/https:\/\/[^\s"]+\.vercel\.app/);
98
- if (urlMatch) {
99
- s.stop(`Deployed to ${pc.cyan(urlMatch[0])}`);
100
- return urlMatch[0];
101
- }
102
- }
103
80
  try {
104
81
  const { readFileSync } = await import("fs");
105
82
  const { join } = await import("path");
106
83
  const projectJson = JSON.parse(
107
84
  readFileSync(join(projectDir, ".vercel", "project.json"), "utf-8")
108
85
  );
109
- if (projectJson.projectId) {
110
- const proj = exec(`vercel project inspect ${projectJson.projectId} --json`, projectDir, 15e3);
111
- if (proj.success) {
112
- const urlMatch = proj.stdout.match(/https:\/\/[^\s"]+\.vercel\.app/);
113
- if (urlMatch) {
114
- s.stop(`Deployed to ${pc.cyan(urlMatch[0])}`);
115
- return urlMatch[0];
116
- }
117
- }
86
+ if (projectJson.projectName) {
87
+ const url = `https://${projectJson.projectName}.vercel.app`;
88
+ p.log.success(`Deployed to ${pc.cyan(url)}`);
89
+ return url;
118
90
  }
119
91
  } catch {
120
92
  }
121
- s.stop("Deployed (extracting URL...)");
122
- p.log.info("The deployment URL was shown in the build output above.");
93
+ p.log.info("The deployment URL was shown in the build output above (after 'Aliased:')");
123
94
  const manual = await p.text({
124
95
  message: "Paste your Vercel production URL",
125
96
  placeholder: "https://your-app.vercel.app",
@@ -684,7 +684,7 @@ var init_default = defineCommand({
684
684
  });
685
685
  if (!isCancelled(deployChoice) && deployChoice === "deploy") {
686
686
  deployAttempted = true;
687
- const { runDeployPipeline } = await import("./deploy-REOQQOZH.js");
687
+ const { runDeployPipeline } = await import("./deploy-L6ITPGHX.js");
688
688
  deployResult = await runDeployPipeline({
689
689
  projectDir,
690
690
  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-V7PERVEX.js";
12
+ } from "./chunk-X5LIASNE.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-V7PERVEX.js";
4
+ } from "./chunk-X5LIASNE.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": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Scaffold and manage Whop-powered apps with whop-kit",
5
5
  "type": "module",
6
6
  "license": "MIT",