create-whop-kit 0.6.1 → 0.6.2
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.
|
@@ -202,13 +202,20 @@ async function runDeployPipeline(options) {
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
p2.log.success("Vercel authenticated");
|
|
205
|
+
p2.log.step("Vercel: linking project...");
|
|
206
|
+
console.log("");
|
|
207
|
+
const linkOk = execInteractive(`vercel link --yes`, projectDir);
|
|
208
|
+
console.log("");
|
|
209
|
+
if (!linkOk) {
|
|
210
|
+
p2.log.warning("Could not link project. Will try deploying directly.");
|
|
211
|
+
}
|
|
205
212
|
if (databaseUrl) {
|
|
206
213
|
const s2 = p2.spinner();
|
|
207
|
-
s2.start("
|
|
214
|
+
s2.start("Vercel: setting DATABASE_URL...");
|
|
208
215
|
vercelEnvSet("DATABASE_URL", databaseUrl, "production", projectDir);
|
|
209
216
|
vercelEnvSet("DATABASE_URL", databaseUrl, "preview", projectDir);
|
|
210
217
|
vercelEnvSet("DATABASE_URL", databaseUrl, "development", projectDir);
|
|
211
|
-
s2.stop("DATABASE_URL
|
|
218
|
+
s2.stop("DATABASE_URL set on Vercel");
|
|
212
219
|
}
|
|
213
220
|
const productionUrl = await vercelDeploy(projectDir);
|
|
214
221
|
if (!productionUrl) {
|
|
@@ -216,7 +223,6 @@ async function runDeployPipeline(options) {
|
|
|
216
223
|
p2.log.info(pc2.bold(` cd ${projectName} && vercel deploy --prod`));
|
|
217
224
|
return null;
|
|
218
225
|
}
|
|
219
|
-
p2.log.success(`Live at ${pc2.cyan(productionUrl)}`);
|
|
220
226
|
const connectWhop = await p2.confirm({
|
|
221
227
|
message: "Connect to Whop? (creates OAuth app + webhooks automatically)",
|
|
222
228
|
initialValue: true
|
package/dist/cli-create.js
CHANGED
|
@@ -673,7 +673,7 @@ var init_default = defineCommand({
|
|
|
673
673
|
return !isCancelled(result) && result;
|
|
674
674
|
})();
|
|
675
675
|
if (shouldDeploy) {
|
|
676
|
-
const { runDeployPipeline } = await import("./deploy-
|
|
676
|
+
const { runDeployPipeline } = await import("./deploy-2HX64HTI.js");
|
|
677
677
|
deployResult = await runDeployPipeline({
|
|
678
678
|
projectDir,
|
|
679
679
|
projectName,
|
|
@@ -685,23 +685,25 @@ var init_default = defineCommand({
|
|
|
685
685
|
}
|
|
686
686
|
let summary = "";
|
|
687
687
|
if (deployResult?.productionUrl) {
|
|
688
|
-
summary += `${pc5.green("\u2713")}
|
|
688
|
+
if (dbUrl) summary += `${pc5.green("\u2713")} Database connected
|
|
689
|
+
`;
|
|
690
|
+
summary += `${pc5.green("\u2713")} Deployed to Vercel
|
|
689
691
|
`;
|
|
690
692
|
if (deployResult.whopAppId) summary += `${pc5.green("\u2713")} Whop app: ${deployResult.whopAppId}
|
|
691
693
|
`;
|
|
692
694
|
if (deployResult.webhookSecret) summary += `${pc5.green("\u2713")} Webhooks configured
|
|
693
|
-
`;
|
|
694
|
-
if (dbUrl) summary += `${pc5.green("\u2713")} Database connected
|
|
695
695
|
`;
|
|
696
696
|
summary += `
|
|
697
697
|
`;
|
|
698
|
-
summary += ` ${pc5.bold("
|
|
698
|
+
summary += ` ${pc5.bold("Production:")} ${pc5.cyan(deployResult.productionUrl)}
|
|
699
699
|
`;
|
|
700
|
-
summary += ` ${pc5.bold(
|
|
700
|
+
summary += ` ${pc5.bold("Local dev:")} ${pc5.cyan("http://localhost:3000")}
|
|
701
701
|
`;
|
|
702
702
|
summary += `
|
|
703
703
|
`;
|
|
704
|
-
summary += ` ${pc5.
|
|
704
|
+
summary += ` ${pc5.bold("cd")} ${basename2(projectName)}
|
|
705
|
+
`;
|
|
706
|
+
summary += ` ${pc5.bold(`${pm} run dev`)} ${pc5.dim("# start local dev server")}`;
|
|
705
707
|
} else {
|
|
706
708
|
if (dbUrl) summary += `${pc5.green("\u2713")} Database configured
|
|
707
709
|
`;
|
package/dist/cli-kit.js
CHANGED