create-whop-kit 0.6.3 → 0.6.4
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.
|
@@ -40,37 +40,42 @@ async function vercelLogin() {
|
|
|
40
40
|
return ok;
|
|
41
41
|
}
|
|
42
42
|
async function vercelDeploy(projectDir) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
const s = p.spinner();
|
|
44
|
+
s.start("Vercel: deploying to production (this may take a few minutes)...");
|
|
45
|
+
const result = exec("vercel deploy --prod --yes", projectDir, 3e5);
|
|
46
|
+
if (!result.success) {
|
|
47
|
+
s.stop("Vercel deployment failed");
|
|
48
|
+
const errorOutput = result.stderr || result.stdout;
|
|
49
|
+
if (errorOutput) {
|
|
50
|
+
p.log.error("Build output:");
|
|
51
|
+
console.log(pc.dim(errorOutput.substring(0, 500)));
|
|
52
|
+
}
|
|
49
53
|
return null;
|
|
50
54
|
}
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return url;
|
|
59
|
-
}
|
|
60
|
-
} catch {
|
|
55
|
+
const lines = result.stdout.split("\n");
|
|
56
|
+
let url = "";
|
|
57
|
+
for (const line of lines) {
|
|
58
|
+
const match = line.match(/https:\/\/[^\s\[\]]+\.vercel\.app/);
|
|
59
|
+
if (match) {
|
|
60
|
+
url = match[0];
|
|
61
|
+
if (!url.includes("-git-") && url.split("-").length < 5) break;
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
if (url) {
|
|
65
|
+
s.stop(`Deployed to ${pc.cyan(url)}`);
|
|
66
|
+
return url;
|
|
67
|
+
}
|
|
68
|
+
for (const line of lines) {
|
|
69
|
+
const match = line.match(/https:\/\/[^\s\[\]]+/);
|
|
70
|
+
if (match) {
|
|
71
|
+
url = match[0];
|
|
72
|
+
s.stop(`Deployed to ${pc.cyan(url)}`);
|
|
73
|
+
return url;
|
|
69
74
|
}
|
|
70
75
|
}
|
|
71
|
-
|
|
76
|
+
s.stop("Deployed but could not extract URL");
|
|
72
77
|
const manual = await p.text({
|
|
73
|
-
message: "Paste your Vercel
|
|
78
|
+
message: "Paste your Vercel production URL (shown in the output above)",
|
|
74
79
|
placeholder: "https://your-app.vercel.app",
|
|
75
80
|
validate: (v) => {
|
|
76
81
|
if (!v?.startsWith("https://")) return "Must be a https:// URL";
|
package/dist/cli-create.js
CHANGED
|
@@ -675,7 +675,7 @@ var init_default = defineCommand({
|
|
|
675
675
|
})();
|
|
676
676
|
if (shouldDeploy) {
|
|
677
677
|
deployAttempted = true;
|
|
678
|
-
const { runDeployPipeline } = await import("./deploy-
|
|
678
|
+
const { runDeployPipeline } = await import("./deploy-ATDZ322S.js");
|
|
679
679
|
deployResult = await runDeployPipeline({
|
|
680
680
|
projectDir,
|
|
681
681
|
projectName,
|
package/dist/cli-kit.js
CHANGED