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
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-
|
|
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 =
|
|
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
|
|
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
|
@@ -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 (
|
|
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 (
|
|
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 (
|
|
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 || "",
|