create-better-t-stack 2.29.0 → 2.29.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/index.js CHANGED
@@ -1620,7 +1620,7 @@ const BTS_CONFIG_FILE = "bts.jsonc";
1620
1620
  async function writeBtsConfig(projectConfig) {
1621
1621
  const btsConfig = {
1622
1622
  version: getLatestCLIVersion(),
1623
- createdAt: new Date().toISOString(),
1623
+ createdAt: (/* @__PURE__ */ new Date()).toISOString(),
1624
1624
  database: projectConfig.database,
1625
1625
  orm: projectConfig.orm,
1626
1626
  backend: projectConfig.backend,
@@ -1635,7 +1635,7 @@ async function writeBtsConfig(projectConfig) {
1635
1635
  webDeploy: projectConfig.webDeploy
1636
1636
  };
1637
1637
  const baseContent = {
1638
- $schema: "https://better-t-stack.dev/schema.json",
1638
+ $schema: "https://r2.better-t-stack.dev/schema.json",
1639
1639
  version: btsConfig.version,
1640
1640
  createdAt: btsConfig.createdAt,
1641
1641
  database: btsConfig.database,
@@ -1861,11 +1861,11 @@ async function setupTauri(config) {
1861
1861
  };
1862
1862
  await fs.writeJson(clientPackageJsonPath, packageJson, { spaces: 2 });
1863
1863
  }
1864
- const _hasTanstackRouter = frontend.includes("tanstack-router");
1864
+ frontend.includes("tanstack-router");
1865
1865
  const hasReactRouter = frontend.includes("react-router");
1866
1866
  const hasNuxt = frontend.includes("nuxt");
1867
1867
  const hasSvelte = frontend.includes("svelte");
1868
- const _hasSolid = frontend.includes("solid");
1868
+ frontend.includes("solid");
1869
1869
  const hasNext = frontend.includes("next");
1870
1870
  const devUrl = hasReactRouter || hasSvelte ? "http://localhost:5173" : hasNext ? "http://localhost:3001" : "http://localhost:3001";
1871
1871
  const frontendDist = hasNuxt ? "../.output/public" : hasSvelte ? "../build" : hasNext ? "../.next" : hasReactRouter ? "../build/client" : "../dist";
@@ -2294,7 +2294,6 @@ async function setupFrontendTemplates(projectDir, context) {
2294
2294
  const hasSolidWeb = context.frontend.includes("solid");
2295
2295
  const hasNativeWind = context.frontend.includes("native-nativewind");
2296
2296
  const hasUnistyles = context.frontend.includes("native-unistyles");
2297
- const _hasNative = hasNativeWind || hasUnistyles;
2298
2297
  const isConvex = context.backend === "convex";
2299
2298
  if (hasReactWeb || hasNuxtWeb || hasSvelteWeb || hasSolidWeb) {
2300
2299
  const webAppDir = path.join(projectDir, "apps/web");
@@ -2705,7 +2704,7 @@ async function setupNuxtWorkersDeploy(projectDir, packageManager) {
2705
2704
  if (!defineCall) return;
2706
2705
  const configObj = defineCall.getArguments()[0];
2707
2706
  if (!configObj) return;
2708
- const today = new Date().toISOString().slice(0, 10);
2707
+ const today = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
2709
2708
  const compatProp = configObj.getProperty("compatibilityDate");
2710
2709
  if (compatProp && compatProp.getKind() === SyntaxKind.PropertyAssignment) compatProp.setInitializer(`'${today}'`);
2711
2710
  else configObj.addPropertyAssignment({
@@ -3206,7 +3205,7 @@ async function setupAuth(config) {
3206
3205
  function generateAuthSecret(length = 32) {
3207
3206
  const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
3208
3207
  let result = "";
3209
- const charactersLength = characters.length;
3208
+ const charactersLength = 62;
3210
3209
  for (let i = 0; i < length; i++) result += characters.charAt(Math.floor(Math.random() * charactersLength));
3211
3210
  return result;
3212
3211
  }
@@ -4178,13 +4177,11 @@ DATABASE_AUTH_TOKEN=your_auth_token`);
4178
4177
  }
4179
4178
  async function setupTurso(config) {
4180
4179
  const { orm, projectDir } = config;
4181
- const _isDrizzle = orm === "drizzle";
4182
4180
  const setupSpinner = spinner();
4183
4181
  setupSpinner.start("Checking Turso CLI availability...");
4184
4182
  try {
4185
4183
  const platform = os.platform();
4186
4184
  const isMac = platform === "darwin";
4187
- const _isLinux = platform === "linux";
4188
4185
  const isWindows = platform === "win32";
4189
4186
  if (isWindows) {
4190
4187
  setupSpinner.stop(pc.yellow("Turso setup not supported on Windows"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "2.29.0",
3
+ "version": "2.29.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",
@@ -62,15 +62,15 @@
62
62
  "handlebars": "^4.7.8",
63
63
  "jsonc-parser": "^3.3.1",
64
64
  "picocolors": "^1.1.1",
65
- "posthog-node": "^5.5.0",
66
- "trpc-cli": "^0.10.0",
65
+ "posthog-node": "^5.6.0",
66
+ "trpc-cli": "^0.10.2",
67
67
  "ts-morph": "^26.0.0",
68
- "zod": "^4.0.5"
68
+ "zod": "^4.0.14"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/fs-extra": "^11.0.4",
72
- "@types/node": "^24.0.13",
73
- "tsdown": "^0.12.9",
74
- "typescript": "^5.8.3"
72
+ "@types/node": "^24.2.0",
73
+ "tsdown": "^0.13.3",
74
+ "typescript": "^5.9.2"
75
75
  }
76
76
  }
@@ -1,4 +1,4 @@
1
- {{#if (includes frontend "nuxt")}}
1
+ {{#if (or (includes frontend "nuxt") (includes frontend "native-nativewind"))}}
2
2
  # [install]
3
3
  # linker = "isolated"
4
4
  {{else}}