create-better-t-stack 2.45.2 → 2.45.3-canary.0f57a93b

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-CcyNqyjw.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-CcyNqyjw.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -1332,7 +1332,7 @@ const getLatestCLIVersion = () => {
1332
1332
  */
1333
1333
  function isTelemetryEnabled() {
1334
1334
  const BTS_TELEMETRY_DISABLED = process.env.BTS_TELEMETRY_DISABLED;
1335
- const BTS_TELEMETRY = "1";
1335
+ const BTS_TELEMETRY = "0";
1336
1336
  if (BTS_TELEMETRY_DISABLED !== void 0) return BTS_TELEMETRY_DISABLED !== "1";
1337
1337
  if (BTS_TELEMETRY !== void 0) return BTS_TELEMETRY === "1";
1338
1338
  return true;
@@ -1340,8 +1340,8 @@ function isTelemetryEnabled() {
1340
1340
 
1341
1341
  //#endregion
1342
1342
  //#region src/utils/analytics.ts
1343
- const POSTHOG_API_KEY = "phc_8ZUxEwwfKMajJLvxz1daGd931dYbQrwKNficBmsdIrs";
1344
- const POSTHOG_HOST = "https://us.i.posthog.com";
1343
+ const POSTHOG_API_KEY = "random";
1344
+ const POSTHOG_HOST = "random";
1345
1345
  function generateSessionId() {
1346
1346
  const rand = Math.random().toString(36).slice(2);
1347
1347
  const now = Date.now().toString(36);
@@ -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-canary.0f57a93b",
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;