create-better-t-stack 2.35.4 → 2.35.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.
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { createBtsCli } from "./src-X-NzEC_t.js";
2
+ import { createBtsCli } from "./src-D3yNVHFj.js";
3
3
 
4
4
  //#region src/cli.ts
5
5
  createBtsCli().run();
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { builder, createBtsCli, docs, init, router, sponsors } from "./src-X-NzEC_t.js";
2
+ import { builder, createBtsCli, docs, init, router, sponsors } from "./src-D3yNVHFj.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -1080,7 +1080,8 @@ async function getServerDeploymentChoice(deployment, runtime, backend, webDeploy
1080
1080
  if (backend === "none" || backend === "convex") return "none";
1081
1081
  if (backend !== "hono") return "none";
1082
1082
  const options = [];
1083
- if (runtime === "workers") ["alchemy", "wrangler"].forEach((deploy) => {
1083
+ if (runtime !== "workers") return "none";
1084
+ ["alchemy", "wrangler"].forEach((deploy) => {
1084
1085
  const { label, hint } = getDeploymentDisplay$1(deploy);
1085
1086
  options.unshift({
1086
1087
  value: deploy,
@@ -1088,11 +1089,6 @@ async function getServerDeploymentChoice(deployment, runtime, backend, webDeploy
1088
1089
  hint
1089
1090
  });
1090
1091
  });
1091
- else options.push({
1092
- value: "none",
1093
- label: "None",
1094
- hint: "Manual setup"
1095
- });
1096
1092
  const response = await select({
1097
1093
  message: "Select server deployment",
1098
1094
  options,
@@ -1123,11 +1119,7 @@ async function getServerDeploymentToAdd(runtime, existingDeployment, backend) {
1123
1119
  }
1124
1120
  }
1125
1121
  if (existingDeployment && existingDeployment !== "none") return "none";
1126
- if (options.length > 0) options.push({
1127
- value: "none",
1128
- label: "None",
1129
- hint: "Skip deployment setup"
1130
- });
1122
+ if (options.length > 0) {}
1131
1123
  if (options.length === 0) return "none";
1132
1124
  const response = await select({
1133
1125
  message: "Select server deployment",
@@ -1740,6 +1732,7 @@ function validateFullConfig(config, providedFlags, options) {
1740
1732
  validateApiConstraints(config, options);
1741
1733
  validateServerDeployRequiresBackend(config.serverDeploy, config.backend);
1742
1734
  validateWorkersCompatibility(providedFlags, options, config);
1735
+ if (config.runtime === "workers" && config.serverDeploy === "none") exitWithError("Cloudflare Workers runtime requires a server deployment. Please choose 'wrangler' or 'alchemy' for --server-deploy.");
1743
1736
  if (config.addons && config.addons.length > 0) {
1744
1737
  validateAddonsAgainstFrontends(config.addons, config.frontend);
1745
1738
  config.addons = [...new Set(config.addons)];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "2.35.4",
3
+ "version": "2.35.5",
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",