create-better-t-stack 3.44.1 → 3.44.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.
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { D as setProcessMode, i as SchemaNameSchema, l as create, m as getSchemaResult, s as add, u as createBtsCli, v as types_exports, y as getLatestCLIVersion } from "./src-
|
|
2
|
+
import { D as setProcessMode, i as SchemaNameSchema, l as create, m as getSchemaResult, s as add, u as createBtsCli, v as types_exports, y as getLatestCLIVersion } from "./src-DWTrkxVq.mjs";
|
|
3
3
|
import { lineByLineConsoleLogger } from "trpc-cli";
|
|
4
4
|
import z from "zod";
|
|
5
5
|
import { McpServer } from "@modelcontextprotocol/server";
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { C as DirectoryConflictError, E as ValidationError, S as DatabaseSetupError, T as UserCancelledError, _ as ProjectLauncherSchema, a as TEMPLATE_COUNT, b as CLIError, c as builder, d as createVirtual, f as docs, g as sponsors, h as router, i as SchemaNameSchema, l as create, m as getSchemaResult, n as GeneratorError, o as VirtualFileSystem, p as generate, r as Result, s as add, t as EMBEDDED_TEMPLATES, u as createBtsCli, w as ProjectCreationError, x as CompatibilityError } from "./src-
|
|
2
|
+
import { C as DirectoryConflictError, E as ValidationError, S as DatabaseSetupError, T as UserCancelledError, _ as ProjectLauncherSchema, a as TEMPLATE_COUNT, b as CLIError, c as builder, d as createVirtual, f as docs, g as sponsors, h as router, i as SchemaNameSchema, l as create, m as getSchemaResult, n as GeneratorError, o as VirtualFileSystem, p as generate, r as Result, s as add, t as EMBEDDED_TEMPLATES, u as createBtsCli, w as ProjectCreationError, x as CompatibilityError } from "./src-DWTrkxVq.mjs";
|
|
3
3
|
export { CLIError, CompatibilityError, DatabaseSetupError, DirectoryConflictError, EMBEDDED_TEMPLATES, GeneratorError, ProjectCreationError, ProjectLauncherSchema, Result, SchemaNameSchema, TEMPLATE_COUNT, UserCancelledError, ValidationError, VirtualFileSystem, add, builder, create, createBtsCli, createVirtual, docs, generate, getSchemaResult, router, sponsors };
|
|
@@ -1108,7 +1108,7 @@ function validateDockerServerDeploy(serverDeploy, backend, runtime) {
|
|
|
1108
1108
|
function validateVercelServerDeploy(serverDeploy, backend, runtime) {
|
|
1109
1109
|
if (serverDeploy !== "vercel") return Result.ok(void 0);
|
|
1110
1110
|
if (backend && backend !== "none" && !SERVER_BACKENDS.includes(backend)) return validationErr$1("'--server-deploy vercel' requires a separate server backend (hono, express, fastify, elysia). For a fullstack 'self' backend, use '--web-deploy vercel' instead.");
|
|
1111
|
-
if (runtime && !supportsServerDeployRuntime(serverDeploy, runtime)) return validationErr$1(
|
|
1111
|
+
if (runtime && !supportsServerDeployRuntime(serverDeploy, runtime)) return validationErr$1(`'--server-deploy vercel' is not compatible with '--runtime ${runtime}'. Use '--runtime node'. Bun remains supported as a package manager.`);
|
|
1112
1112
|
return Result.ok(void 0);
|
|
1113
1113
|
}
|
|
1114
1114
|
function validatePrismaServerDeploy(serverDeploy, backend, runtime) {
|
|
@@ -6196,7 +6196,7 @@ async function getServerDeploymentChoice(deployment, runtime, backend, _webDeplo
|
|
|
6196
6196
|
"docker",
|
|
6197
6197
|
"vercel",
|
|
6198
6198
|
"none"
|
|
6199
|
-
].map((deploy) => {
|
|
6199
|
+
].filter((deploy) => supportsServerDeployRuntime(deploy, runtime)).map((deploy) => {
|
|
6200
6200
|
const { label, hint } = deploy === "none" ? {
|
|
6201
6201
|
label: "None",
|
|
6202
6202
|
hint: "Skip deployment setup"
|
|
@@ -7170,6 +7170,7 @@ function processFlags(options, projectName) {
|
|
|
7170
7170
|
if (options.git !== void 0) config.git = options.git;
|
|
7171
7171
|
if (options.install !== void 0) config.install = options.install;
|
|
7172
7172
|
if (options.runtime) config.runtime = options.runtime;
|
|
7173
|
+
else if (options.serverDeploy === "vercel") config.runtime = "node";
|
|
7173
7174
|
if (options.dbSetup) config.dbSetup = options.dbSetup;
|
|
7174
7175
|
if (options.packageManager) config.packageManager = options.packageManager;
|
|
7175
7176
|
if (options.webDeploy) config.webDeploy = options.webDeploy;
|
|
@@ -9834,7 +9835,7 @@ async function createVirtual(options) {
|
|
|
9834
9835
|
database: virtualOptions.database || "none",
|
|
9835
9836
|
orm: virtualOptions.orm || "none",
|
|
9836
9837
|
backend: virtualOptions.backend || "hono",
|
|
9837
|
-
runtime: virtualOptions.runtime || "bun",
|
|
9838
|
+
runtime: virtualOptions.runtime || (virtualOptions.serverDeploy === "vercel" ? "node" : "bun"),
|
|
9838
9839
|
frontend: virtualOptions.frontend || ["tanstack-router"],
|
|
9839
9840
|
addons: virtualOptions.addons || [],
|
|
9840
9841
|
examples: virtualOptions.examples || [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "3.44.
|
|
3
|
+
"version": "3.44.2",
|
|
4
4
|
"description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"better-auth",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"prepublishOnly": "npm run build"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@better-t-stack/template-generator": "^3.44.
|
|
74
|
-
"@better-t-stack/types": "^3.44.
|
|
73
|
+
"@better-t-stack/template-generator": "^3.44.2",
|
|
74
|
+
"@better-t-stack/types": "^3.44.2",
|
|
75
75
|
"@clack/core": "^1.5.0",
|
|
76
76
|
"@clack/prompts": "^1.8.0",
|
|
77
77
|
"@modelcontextprotocol/server": "2.0.0",
|