create-better-t-stack 3.5.1 → 3.5.3

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 { n as createBtsCli } from "./src-C4e8E70x.js";
2
+ import { n as createBtsCli } from "./src-C_MeUxmG.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 { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-C4e8E70x.js";
2
+ import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-C_MeUxmG.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -6029,7 +6029,7 @@ function generateDatabaseSetup(database, _auth, packageManagerRunCmd, orm, dbSet
6029
6029
  if (database === "none") return "";
6030
6030
  const isBackendSelf = backend === "self";
6031
6031
  const envPath = isBackendSelf ? "apps/web/.env" : "apps/server/.env";
6032
- const dbLocalPath = isBackendSelf ? "apps/web" : "apps/server";
6032
+ const dbLocalPath = "packages/db";
6033
6033
  let setup = "## Database Setup\n\n";
6034
6034
  if (database === "sqlite") setup += `This project uses SQLite${orm === "drizzle" ? " with Drizzle ORM" : orm === "prisma" ? " with Prisma" : ` with ${orm}`}.
6035
6035
 
@@ -6091,7 +6091,7 @@ function generateScriptsList(packageManagerRunCmd, database, orm, _auth, hasNati
6091
6091
  - \`${packageManagerRunCmd} db:push\`: Push schema changes to database
6092
6092
  - \`${packageManagerRunCmd} db:studio\`: Open database studio UI`;
6093
6093
  if (database === "sqlite" && orm === "drizzle") scripts += `
6094
- - \`cd ${isBackendSelf ? "apps/web" : "apps/server"} && ${packageManagerRunCmd} db:local\`: Start the local SQLite database`;
6094
+ - \`cd packages/db && ${packageManagerRunCmd} db:local\`: Start the local SQLite database`;
6095
6095
  }
6096
6096
  if (addons.includes("biome")) scripts += `
6097
6097
  - \`${packageManagerRunCmd} check\`: Run Biome formatting and linting`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "3.5.1",
3
+ "version": "3.5.3",
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",
@@ -57,7 +57,7 @@ export const web = await Nextjs("web", {
57
57
  {{#if (eq backend "self")}}
58
58
  {{#if (eq dbSetup "d1")}}
59
59
  DB: db,
60
- {{else if (and (ne database "none") (ne dbSetup "none"))}}
60
+ {{else if (ne database "none")}}
61
61
  DATABASE_URL: alchemy.secret(process.env.DATABASE_URL),
62
62
  {{/if}}
63
63
  CORS_ORIGIN: process.env.CORS_ORIGIN || "",
@@ -131,7 +131,7 @@ export const web = await TanStackStart("web", {
131
131
  {{#if (eq backend "self")}}
132
132
  {{#if (eq dbSetup "d1")}}
133
133
  DB: db,
134
- {{else if (and (ne database "none") (ne dbSetup "none"))}}
134
+ {{else if (ne database "none")}}
135
135
  DATABASE_URL: alchemy.secret(process.env.DATABASE_URL),
136
136
  {{/if}}
137
137
  CORS_ORIGIN: process.env.CORS_ORIGIN || "",
@@ -220,7 +220,7 @@ export const server = await Worker("server", {
220
220
  bindings: {
221
221
  {{#if (eq dbSetup "d1")}}
222
222
  DB: db,
223
- {{else if (and (ne database "none") (ne dbSetup "none"))}}
223
+ {{else if (ne database "none")}}
224
224
  DATABASE_URL: alchemy.secret(process.env.DATABASE_URL),
225
225
  {{/if}}
226
226
  CORS_ORIGIN: process.env.CORS_ORIGIN || "",