create-better-t-stack 2.23.0 → 2.23.1

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4285,7 +4285,7 @@ async function initializeGit(projectDir, useGit) {
4285
4285
  //#endregion
4286
4286
  //#region src/helpers/project-generation/post-installation.ts
4287
4287
  function displayPostInstallInstructions(config) {
4288
- const { database, relativePath, packageManager, depsInstalled, orm, addons, runtime, frontend, backend, dbSetup } = config;
4288
+ const { database, relativePath, packageManager, depsInstalled, orm, addons, runtime, frontend, backend, dbSetup, webDeploy } = config;
4289
4289
  const isConvex = backend === "convex";
4290
4290
  const runCmd = packageManager === "npm" ? "npm run" : packageManager;
4291
4291
  const cdCmd = `cd ${relativePath}`;
@@ -4296,6 +4296,7 @@ function displayPostInstallInstructions(config) {
4296
4296
  const nativeInstructions = frontend?.includes("native-nativewind") || frontend?.includes("native-unistyles") ? getNativeInstructions(isConvex) : "";
4297
4297
  const pwaInstructions = addons?.includes("pwa") && frontend?.includes("react-router") ? getPwaInstructions() : "";
4298
4298
  const starlightInstructions = addons?.includes("starlight") ? getStarlightInstructions(runCmd) : "";
4299
+ const workersDeployInstructions = webDeploy === "workers" ? getWorkersDeployInstructions(runCmd) : "";
4299
4300
  const hasWeb = frontend?.some((f) => [
4300
4301
  "tanstack-router",
4301
4302
  "react-router",
@@ -4337,6 +4338,7 @@ function displayPostInstallInstructions(config) {
4337
4338
  if (tauriInstructions) output += `\n${tauriInstructions.trim()}\n`;
4338
4339
  if (lintingInstructions) output += `\n${lintingInstructions.trim()}\n`;
4339
4340
  if (pwaInstructions) output += `\n${pwaInstructions.trim()}\n`;
4341
+ if (workersDeployInstructions) output += `\n${workersDeployInstructions.trim()}\n`;
4340
4342
  if (starlightInstructions) output += `\n${starlightInstructions.trim()}\n`;
4341
4343
  if (noOrmWarning) output += `\n${noOrmWarning.trim()}\n`;
4342
4344
  if (bunWebNativeWarning) output += `\n${bunWebNativeWarning.trim()}\n`;
@@ -4396,6 +4398,9 @@ function getNoOrmWarning() {
4396
4398
  function getBunWebNativeWarning() {
4397
4399
  return `\n${pc.yellow("WARNING:")} 'bun' might cause issues with web + native apps in a monorepo. Use 'pnpm' if problems arise.`;
4398
4400
  }
4401
+ function getWorkersDeployInstructions(runCmd) {
4402
+ return `\n${pc.bold("Deploy frontend to Cloudflare Workers:")}\n${pc.cyan("•")} Deploy: ${`cd apps/web && ${runCmd || "bun run"} deploy`}`;
4403
+ }
4399
4404
 
4400
4405
  //#endregion
4401
4406
  //#region src/helpers/project-generation/project-config.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "2.23.0",
3
+ "version": "2.23.1",
4
4
  "description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
5
5
  "type": "module",
6
6
  "license": "MIT",