create-better-t-stack 3.6.0 → 3.6.1

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-CWiiwWrU.js";
2
+ import { n as createBtsCli } from "./src-DaTuAN3w.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-CWiiwWrU.js";
2
+ import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-DaTuAN3w.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -5729,6 +5729,7 @@ async function setupDatabase(config, cliInput) {
5729
5729
  const s = spinner();
5730
5730
  const dbPackageDir = path.join(projectDir, "packages/db");
5731
5731
  const webDir = path.join(projectDir, "apps/web");
5732
+ const webDirExists = await fs.pathExists(webDir);
5732
5733
  if (!await fs.pathExists(dbPackageDir)) return;
5733
5734
  try {
5734
5735
  if (orm === "prisma") {
@@ -5777,7 +5778,7 @@ async function setupDatabase(config, cliInput) {
5777
5778
  devDependencies: ["drizzle-kit"],
5778
5779
  projectDir: dbPackageDir
5779
5780
  });
5780
- await addPackageDependency({
5781
+ if (webDirExists) await addPackageDependency({
5781
5782
  dependencies: ["@libsql/client", "libsql"],
5782
5783
  projectDir: webDir
5783
5784
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
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",