create-better-t-stack 3.28.2 → 3.29.0

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 { _ as types_exports, i as SchemaNameSchema, l as create, m as getSchemaResult, s as add, u as createBtsCli, v as getLatestCLIVersion } from "./src-PtlLGeY1.mjs";
2
+ import { _ as types_exports, i as SchemaNameSchema, l as create, m as getSchemaResult, s as add, u as createBtsCli, v as getLatestCLIVersion } from "./src-DBbRu-AO.mjs";
3
3
  import z from "zod";
4
4
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
5
5
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { C as ProjectCreationError, S as DirectoryConflictError, T as ValidationError, a as TEMPLATE_COUNT, b as CompatibilityError, 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 UserCancelledError, x as DatabaseSetupError, y as CLIError } from "./src-PtlLGeY1.mjs";
2
+ import { C as ProjectCreationError, S as DirectoryConflictError, T as ValidationError, a as TEMPLATE_COUNT, b as CompatibilityError, 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 UserCancelledError, x as DatabaseSetupError, y as CLIError } from "./src-DBbRu-AO.mjs";
3
3
  export { CLIError, CompatibilityError, DatabaseSetupError, DirectoryConflictError, EMBEDDED_TEMPLATES, GeneratorError, ProjectCreationError, Result, SchemaNameSchema, TEMPLATE_COUNT, UserCancelledError, ValidationError, VirtualFileSystem, add, builder, create, createBtsCli, createVirtual, docs, generate, getSchemaResult, router, sponsors };
@@ -850,6 +850,7 @@ function isExampleTodoAllowed(backend, database, api) {
850
850
  return true;
851
851
  }
852
852
  function isExampleAIAllowed(backend, frontends = []) {
853
+ if (backend === "none") return false;
853
854
  const includesSolid = frontends.includes("solid");
854
855
  const includesAstro = frontends.includes("astro");
855
856
  if (includesSolid || includesAstro) return false;
@@ -919,6 +920,8 @@ function validateExamplesCompatibility(examples, backend, database, frontend, ap
919
920
  if (api === "none") return validationErr$1("The 'todo' example requires an API layer (tRPC or oRPC). Cannot use --examples todo when api is 'none'.");
920
921
  }
921
922
  if (examplesArr.includes("ai") && (frontend ?? []).includes("solid")) return validationErr$1("The 'ai' example is not compatible with the Solid frontend.");
923
+ if (examplesArr.includes("ai") && (frontend ?? []).includes("astro")) return validationErr$1("The 'ai' example is not compatible with the Astro frontend.");
924
+ if (examplesArr.includes("ai") && backend === "none") return validationErr$1("The 'ai' example requires a backend.");
922
925
  if (examplesArr.includes("ai") && backend === "convex") {
923
926
  const frontendArr = frontend ?? [];
924
927
  const includesNuxt = frontendArr.includes("nuxt");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "3.28.2",
3
+ "version": "3.29.0",
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",
@@ -63,41 +63,40 @@
63
63
  "build": "tsdown --publint",
64
64
  "dev": "tsdown --watch",
65
65
  "check-types": "tsc --noEmit",
66
- "test": "bun run build && bun test",
67
- "test:watch": "bun run build && bun test --watch",
68
- "test:coverage": "bun run build && bun test --coverage",
69
- "test:ci": "bun run build && CI=1 bun test --bail=5",
66
+ "test": "bun test",
67
+ "test:ci": "bun run build && BTS_SKIP_EXTERNAL_COMMANDS=1 BTS_TEST_MODE=1 bun test --bail=5",
68
+ "test:complete": "cd ../.. && bun run build && cd apps/cli && BTS_MATRIX_MODE=smoke BTS_BUILD_SAMPLES=1 bun test --bail=5",
70
69
  "prepublishOnly": "npm run build"
71
70
  },
72
71
  "dependencies": {
73
- "@better-t-stack/template-generator": "^3.28.2",
74
- "@better-t-stack/types": "^3.28.2",
75
- "@clack/core": "^1.3.0",
76
- "@clack/prompts": "^1.3.0",
72
+ "@better-t-stack/template-generator": "^3.29.0",
73
+ "@better-t-stack/types": "^3.29.0",
74
+ "@clack/core": "^1.3.1",
75
+ "@clack/prompts": "^1.4.0",
77
76
  "@modelcontextprotocol/sdk": "1.29.0",
78
77
  "@trpc/server": "^11.17.0",
79
- "better-result": "^2.9.1",
78
+ "better-result": "^2.9.2",
80
79
  "consola": "^3.4.2",
81
80
  "env-paths": "^4.0.0",
82
81
  "execa": "^9.6.1",
83
- "fs-extra": "^11.3.4",
82
+ "fs-extra": "^11.3.5",
84
83
  "gradient-string": "^3.0.0",
85
84
  "handlebars": "^4.7.9",
86
85
  "jsonc-parser": "^3.3.1",
87
- "oxfmt": "^0.47.0",
86
+ "oxfmt": "^0.49.0",
88
87
  "picocolors": "^1.1.1",
89
88
  "tinyglobby": "^0.2.15",
90
- "trpc-cli": "^0.14.0",
89
+ "trpc-cli": "^0.14.1",
91
90
  "ts-morph": "^28.0.0",
92
- "yaml": "^2.8.4",
93
- "zod": "^4.4.2"
91
+ "yaml": "^2.9.0",
92
+ "zod": "^4.4.3"
94
93
  },
95
94
  "devDependencies": {
96
- "@types/bun": "^1.3.13",
95
+ "@types/bun": "^1.3.14",
97
96
  "@types/fs-extra": "^11.0.4",
98
- "@types/node": "^25.6.0",
99
- "publint": "^0.3.18",
100
- "tsdown": "^0.21.10",
97
+ "@types/node": "^25.7.0",
98
+ "publint": "^0.3.21",
99
+ "tsdown": "^0.22.0",
101
100
  "typescript": "^6.0.3"
102
101
  }
103
102
  }