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.
|
|
110
|
-
const
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
|
|
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",
|
package/dist/cli-create.js
CHANGED
|
@@ -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-
|
|
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