create-better-t-stack 2.45.2 → 2.45.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 { createBtsCli } from "./src-ErwDWsqZ.js";
2
+ import { createBtsCli } from "./src-BMqgVYFI.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 { builder, createBtsCli, docs, init, router, sponsors } from "./src-ErwDWsqZ.js";
2
+ import { builder, createBtsCli, docs, init, router, sponsors } from "./src-BMqgVYFI.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -6090,7 +6090,7 @@ async function getDatabaseInstructions(database, orm, runCmd, runtime, dbSetup,
6090
6090
  if (orm === "prisma") {
6091
6091
  if (database === "mongodb" && dbSetup === "docker") instructions.push(`${pc.yellow("WARNING:")} Prisma + MongoDB + Docker combination\n may not work.`);
6092
6092
  if (dbSetup === "docker") instructions.push(`${pc.cyan("•")} Start docker container: ${`${runCmd} db:start`}`);
6093
- instructions.push(`${pc.cyan("•")} Apply schema: ${`${runCmd} db:push`}`);
6093
+ if (!(dbSetup === "d1" && serverDeploy === "alchemy")) instructions.push(`${pc.cyan("•")} Apply schema: ${`${runCmd} db:push`}`);
6094
6094
  if (!(dbSetup === "d1" && serverDeploy === "alchemy")) instructions.push(`${pc.cyan("•")} Database UI: ${`${runCmd} db:studio`}`);
6095
6095
  } else if (orm === "drizzle") {
6096
6096
  if (dbSetup === "docker") instructions.push(`${pc.cyan("•")} Start docker container: ${`${runCmd} db:start`}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "2.45.2",
3
+ "version": "2.45.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",
@@ -1,38 +1,10 @@
1
1
  import "dotenv/config";
2
2
  import path from "node:path";
3
3
  import type { PrismaConfig } from "prisma";
4
- {{#if (eq dbSetup "d1")}}
5
- import { PrismaD1 } from "@prisma/adapter-d1";
6
- {{/if}}
7
- {{#if (eq dbSetup "turso")}}
8
- import { PrismaLibSQL } from "@prisma/adapter-libsql";
9
- {{/if}}
10
4
 
11
5
  export default {
12
- {{#if (or (eq dbSetup "d1") (eq dbSetup "turso"))}}
13
- experimental: {
14
- adapter: true
15
- },
16
- {{/if}}
17
6
  schema: path.join("prisma", "schema"),
18
7
  migrations: {
19
8
  path: path.join("prisma", "migrations"),
20
- },
21
- {{#if (eq dbSetup "d1")}}
22
- async adapter() {
23
- return new PrismaD1({
24
- CLOUDFLARE_D1_TOKEN: process.env.CLOUDFLARE_D1_TOKEN,
25
- CLOUDFLARE_ACCOUNT_ID: process.env.CLOUDFLARE_ACCOUNT_ID,
26
- CLOUDFLARE_DATABASE_ID: process.env.CLOUDFLARE_DATABASE_ID,
27
- });
28
- },
29
- {{/if}}
30
- {{#if (eq dbSetup "turso")}}
31
- async adapter() {
32
- return new PrismaLibSQL({
33
- url: process.env.DATABASE_URL || "",
34
- authToken: process.env.DATABASE_AUTH_TOKEN,
35
- });
36
- },
37
- {{/if}}
9
+ }
38
10
  } satisfies PrismaConfig;