create-better-t-stack 3.43.4 → 3.44.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.
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{src-DgIDG3dg.mjs → src-B9ojerdf.mjs} +5 -2
- package/package.json +3 -3
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-B9ojerdf.mjs";
|
|
3
3
|
import { lineByLineConsoleLogger } from "trpc-cli";
|
|
4
4
|
import z from "zod";
|
|
5
5
|
import { McpServer } from "@modelcontextprotocol/server";
|
package/dist/index.d.mts
CHANGED
|
@@ -606,6 +606,7 @@ export declare const router: {
|
|
|
606
606
|
oxlint: "oxlint";
|
|
607
607
|
}>>;
|
|
608
608
|
editors: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
609
|
+
void: "void";
|
|
609
610
|
antigravity: "antigravity";
|
|
610
611
|
cursor: "cursor";
|
|
611
612
|
vscode: "vscode";
|
|
@@ -615,7 +616,6 @@ export declare const router: {
|
|
|
615
616
|
bob: "bob";
|
|
616
617
|
codebuddy: "codebuddy";
|
|
617
618
|
trae: "trae";
|
|
618
|
-
void: "void";
|
|
619
619
|
kiro: "kiro";
|
|
620
620
|
}>>>;
|
|
621
621
|
agents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -1121,6 +1121,7 @@ export declare const router: {
|
|
|
1121
1121
|
oxlint: "oxlint";
|
|
1122
1122
|
}>>;
|
|
1123
1123
|
editors: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1124
|
+
void: "void";
|
|
1124
1125
|
antigravity: "antigravity";
|
|
1125
1126
|
cursor: "cursor";
|
|
1126
1127
|
vscode: "vscode";
|
|
@@ -1130,7 +1131,6 @@ export declare const router: {
|
|
|
1130
1131
|
bob: "bob";
|
|
1131
1132
|
codebuddy: "codebuddy";
|
|
1132
1133
|
trae: "trae";
|
|
1133
|
-
void: "void";
|
|
1134
1134
|
kiro: "kiro";
|
|
1135
1135
|
}>>>;
|
|
1136
1136
|
agents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
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-B9ojerdf.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 };
|
|
@@ -11,7 +11,7 @@ import path from "node:path";
|
|
|
11
11
|
import envPaths from "env-paths";
|
|
12
12
|
import fs from "fs-extra";
|
|
13
13
|
import { fileURLToPath } from "node:url";
|
|
14
|
-
import { EMBEDDED_TEMPLATES, EMBEDDED_TEMPLATES as EMBEDDED_TEMPLATES$1, GeneratorError, GeneratorError as GeneratorError$1, TEMPLATE_COUNT, VirtualFileSystem, VirtualFileSystem as VirtualFileSystem$1, dependencyVersionMap, generate, generate as generate$1, generateReproducibleCommand, processAddonTemplates, processAddonsDeps, processNxConfig, processPackageConfigs, processPwaPlugins, processTemplateString, processTurboConfig, processVitePlusConfig } from "@better-t-stack/template-generator";
|
|
14
|
+
import { EMBEDDED_TEMPLATES, EMBEDDED_TEMPLATES as EMBEDDED_TEMPLATES$1, GeneratorError, GeneratorError as GeneratorError$1, TEMPLATE_COUNT, VirtualFileSystem, VirtualFileSystem as VirtualFileSystem$1, dependencyVersionMap, generate, generate as generate$1, generateReproducibleCommand, processAddonTemplates, processAddonsDeps, processNpmScriptApprovals, processNxConfig, processPackageConfigs, processPnpmWorkspaceConfig, processPwaPlugins, processTemplateString, processTurboConfig, processVitePlusConfig } from "@better-t-stack/template-generator";
|
|
15
15
|
import { BetterTStackConfigSchema, CONVEX_AI_INCOMPATIBLE_FRONTENDS, CONVEX_BETTER_AUTH_INCOMPATIBLE_FRONTENDS, CONVEX_BETTER_AUTH_SUPPORTED_FRONTENDS, FULLSTACK_FRONTENDS, OBSERVABILITY_ADDONS, OBSERVABILITY_ADDONS as OBSERVABILITY_ADDONS$1, SERVER_BACKENDS, TASK_RUNNER_ADDONS, TASK_RUNNER_ADDONS as TASK_RUNNER_ADDONS$1, TRPC_INCOMPATIBLE_FRONTENDS, allowedApisForFrontends, allowedApisForFrontends as allowedApisForFrontends$1, getBackendDisabledOptions, getDesktopDeployConflict, hasCloudflareNextPostgresConflict, isExampleAIAllowed, isExampleAIAllowed as isExampleAIAllowed$1, isExampleTodoAllowed, isExampleTodoAllowed as isExampleTodoAllowed$1, isFrontendAllowedWithBackend, isFrontendAllowedWithBackend as isFrontendAllowedWithBackend$1, supportsClerkBackend, supportsClerkFrontend, supportsConvexBetterAuth, supportsDatabaseSetup, supportsDatabaseSetupRuntime, supportsOrmDatabase, supportsPaymentsAuth, supportsPrismaWebDeploy, supportsPrismaWebDeploy as supportsPrismaWebDeploy$1, supportsRuntimeBackend, supportsRuntimeDatabase, supportsServerDeployRuntime, usesAlchemyManagedDatabase, validateAddonCompatibility, validateAddonCompatibility as validateAddonCompatibility$1, webFrontends } from "@better-t-stack/types";
|
|
16
16
|
import { ConfirmPrompt, GroupMultiSelectPrompt, MultiSelectPrompt, SelectPrompt, isCancel as isCancel$1, wrapTextWithPrefix } from "@clack/core";
|
|
17
17
|
import { consola, createConsola } from "consola";
|
|
@@ -1119,7 +1119,7 @@ function validatePrismaServerDeploy(serverDeploy, backend, runtime) {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
function validatePrismaWebDeploy(webDeploy, frontend) {
|
|
1121
1121
|
if (webDeploy !== "prisma" || !frontend) return Result.ok(void 0);
|
|
1122
|
-
if (!supportsPrismaWebDeploy(frontend)) return validationErr$1("'--web-deploy prisma' requires a supported
|
|
1122
|
+
if (!supportsPrismaWebDeploy(frontend)) return validationErr$1("'--web-deploy prisma' requires a supported web frontend. Choose TanStack Router, Next.js, Nuxt, Astro, React Router, TanStack Start, SvelteKit, or Solid.");
|
|
1123
1123
|
return Result.ok(void 0);
|
|
1124
1124
|
}
|
|
1125
1125
|
function validateCloudflareWebDeployKnownIssues(config) {
|
|
@@ -4952,6 +4952,7 @@ const ADD_PACKAGE_JSON_PATHS = [
|
|
|
4952
4952
|
"packages/ui/package.json"
|
|
4953
4953
|
];
|
|
4954
4954
|
const ADD_TEXT_FILE_PATHS = [
|
|
4955
|
+
"pnpm-workspace.yaml",
|
|
4955
4956
|
"apps/web/vite.config.ts",
|
|
4956
4957
|
"apps/web/next.config.ts",
|
|
4957
4958
|
"apps/web/src/Document.tsx",
|
|
@@ -5236,6 +5237,8 @@ async function addHandlerInternal(input) {
|
|
|
5236
5237
|
await processAddonTemplates(vfs, EMBEDDED_TEMPLATES, config);
|
|
5237
5238
|
processAddonsDeps(vfs, config);
|
|
5238
5239
|
processPwaPlugins(vfs, config);
|
|
5240
|
+
processPnpmWorkspaceConfig(vfs, updatedConfig);
|
|
5241
|
+
processNpmScriptApprovals(vfs, updatedConfig);
|
|
5239
5242
|
if (addonsToAdd.includes("turborepo")) processTurboConfig(vfs, updatedConfig);
|
|
5240
5243
|
if (addonsToAdd.includes("nx")) processNxConfig(vfs, updatedConfig);
|
|
5241
5244
|
if (addonsToAdd.includes("vite-plus")) processVitePlusConfig(vfs, updatedConfig);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.44.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
|
"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.
|
|
74
|
-
"@better-t-stack/types": "^3.
|
|
73
|
+
"@better-t-stack/template-generator": "^3.44.1",
|
|
74
|
+
"@better-t-stack/types": "^3.44.1",
|
|
75
75
|
"@clack/core": "^1.5.0",
|
|
76
76
|
"@clack/prompts": "^1.8.0",
|
|
77
77
|
"@modelcontextprotocol/server": "2.0.0",
|