create-better-t-stack 3.2.1 → 3.2.2

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-DaKmcEvQ.js";
2
+ import { createBtsCli } from "./src-8ESSxD4Y.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-DaKmcEvQ.js";
2
+ import { builder, createBtsCli, docs, init, router, sponsors } from "./src-8ESSxD4Y.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -4808,7 +4808,7 @@ ${hasWeb ? "# npx convex env set SITE_URL http://localhost:3001\n" : ""}
4808
4808
  databaseUrl = "mongodb://localhost:27017/mydatabase";
4809
4809
  break;
4810
4810
  case "sqlite":
4811
- if (config.runtime === "workers") databaseUrl = "http://127.0.0.1:8080";
4811
+ if (config.runtime === "workers" || webDeploy === "wrangler" || serverDeploy === "wrangler" || webDeploy === "alchemy" || serverDeploy === "alchemy") databaseUrl = "http://127.0.0.1:8080";
4812
4812
  else {
4813
4813
  const dbAppDir = backend === "self" ? "apps/web" : "apps/server";
4814
4814
  databaseUrl = `file:${path.join(config.projectDir, dbAppDir, "local.db")}`;
@@ -6548,6 +6548,7 @@ async function displayPostInstallInstructions(config) {
6548
6548
  let output = `${pc.bold("Next steps")}\n${pc.cyan("1.")} ${cdCmd}\n`;
6549
6549
  let stepCounter = 2;
6550
6550
  if (!depsInstalled) output += `${pc.cyan(`${stepCounter++}.`)} ${packageManager} install\n`;
6551
+ if (database === "sqlite" && dbSetup === "none" && (serverDeploy === "wrangler" || serverDeploy === "alchemy" || webDeploy === "wrangler" || webDeploy === "alchemy")) output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} db:local\n${pc.dim(" (starts local SQLite server for Workers compatibility)")}\n`;
6551
6552
  if (isConvex) {
6552
6553
  output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} dev:setup\n${pc.dim(" (this will guide you through Convex project setup)")}\n`;
6553
6554
  output += `${pc.cyan(`${stepCounter++}.`)} Copy environment variables from\n${pc.white(" packages/backend/.env.local")} to ${pc.white("apps/*/.env")}\n`;
@@ -6640,10 +6641,6 @@ async function getDatabaseInstructions(database, orm, runCmd, runtime, dbSetup,
6640
6641
  if (dbSetup === "docker") instructions.push(`${pc.cyan("•")} Start docker container: ${`${runCmd} db:start`}`);
6641
6642
  if (dbSetup !== "d1") instructions.push(`${pc.cyan("•")} Apply schema: ${`${runCmd} db:push`}`);
6642
6643
  if (!(dbSetup === "d1" && serverDeploy === "alchemy")) instructions.push(`${pc.cyan("•")} Database UI: ${`${runCmd} db:studio`}`);
6643
- if (database === "sqlite" && dbSetup !== "d1") {
6644
- const dbLocalPath = backend === "self" ? "apps/web" : "apps/server";
6645
- instructions.push(`${pc.cyan("•")} Start local DB (if needed): ${`cd ${dbLocalPath} && ${runCmd} db:local`}`);
6646
- }
6647
6644
  } else if (orm === "mongoose") {
6648
6645
  if (dbSetup === "docker") instructions.push(`${pc.cyan("•")} Start docker container: ${`${runCmd} db:start`}`);
6649
6646
  } else if (orm === "none") instructions.push(`${pc.yellow("NOTE:")} Manual database schema setup\n required.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
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",