add workers help message in next steps box

This commit is contained in:
Aman Varshney
2025-07-05 16:32:07 +05:30
parent 1ff445e7bd
commit aea23e84d8
3 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"create-better-t-stack": patch
---
add workers help message in neext steps box

View File

@@ -23,6 +23,7 @@ export function displayPostInstallInstructions(
frontend,
backend,
dbSetup,
webDeploy,
} = config;
const isConvex = backend === "convex";
@@ -54,6 +55,8 @@ export function displayPostInstallInstructions(
const starlightInstructions = addons?.includes("starlight")
? getStarlightInstructions(runCmd)
: "";
const workersDeployInstructions =
webDeploy === "workers" ? getWorkersDeployInstructions(runCmd) : "";
const hasWeb = frontend?.some((f) =>
[
@@ -143,6 +146,8 @@ export function displayPostInstallInstructions(
if (tauriInstructions) output += `\n${tauriInstructions.trim()}\n`;
if (lintingInstructions) output += `\n${lintingInstructions.trim()}\n`;
if (pwaInstructions) output += `\n${pwaInstructions.trim()}\n`;
if (workersDeployInstructions)
output += `\n${workersDeployInstructions.trim()}\n`;
if (starlightInstructions) output += `\n${starlightInstructions.trim()}\n`;
if (noOrmWarning) output += `\n${noOrmWarning.trim()}\n`;
@@ -309,3 +314,7 @@ function getBunWebNativeWarning(): string {
"WARNING:",
)} 'bun' might cause issues with web + native apps in a monorepo. Use 'pnpm' if problems arise.`;
}
function getWorkersDeployInstructions(runCmd?: string): string {
return `\n${pc.bold("Deploy frontend to Cloudflare Workers:")}\n${pc.cyan("•")} Deploy: ${`cd apps/web && ${runCmd || "bun run"} deploy`}`;
}

View File

@@ -14,7 +14,7 @@
},
"apps/cli": {
"name": "create-better-t-stack",
"version": "2.22.10",
"version": "2.23.0",
"bin": {
"create-better-t-stack": "dist/index.js",
},