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 +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-CWiiwWrU.js → src-DaTuAN3w.js} +2 -1
- package/package.json +1 -1
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-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