create-better-t-stack 3.2.1 → 3.2.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 +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-DaKmcEvQ.js → src-BcBhk2Os.js} +6 -7
- package/package.json +1 -1
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -146,8 +146,7 @@ const dependencyVersionMap = {
|
|
|
146
146
|
"nitro-cloudflare-dev": "^0.2.2",
|
|
147
147
|
"@sveltejs/adapter-cloudflare": "^7.2.1",
|
|
148
148
|
"@cloudflare/workers-types": "^4.20250822.0",
|
|
149
|
-
alchemy: "^0.
|
|
150
|
-
nitropack: "^2.12.4",
|
|
149
|
+
alchemy: "^0.75.1",
|
|
151
150
|
dotenv: "^17.2.2",
|
|
152
151
|
tsdown: "^0.15.5",
|
|
153
152
|
zod: "^4.1.11",
|
|
@@ -2546,11 +2545,14 @@ async function setupOxlint(projectDir, packageManager) {
|
|
|
2546
2545
|
await fs.writeJson(packageJsonPath, packageJson, { spaces: 2 });
|
|
2547
2546
|
}
|
|
2548
2547
|
const oxlintInitCommand = getPackageExecutionCommand(packageManager, "oxlint@latest --init");
|
|
2548
|
+
const s = spinner();
|
|
2549
|
+
s.start("Initializing oxlint...");
|
|
2549
2550
|
await execa(oxlintInitCommand, {
|
|
2550
2551
|
cwd: projectDir,
|
|
2551
2552
|
env: { CI: "true" },
|
|
2552
2553
|
shell: true
|
|
2553
2554
|
});
|
|
2555
|
+
s.stop("oxlint initialized successfully!");
|
|
2554
2556
|
}
|
|
2555
2557
|
|
|
2556
2558
|
//#endregion
|
|
@@ -4808,7 +4810,7 @@ ${hasWeb ? "# npx convex env set SITE_URL http://localhost:3001\n" : ""}
|
|
|
4808
4810
|
databaseUrl = "mongodb://localhost:27017/mydatabase";
|
|
4809
4811
|
break;
|
|
4810
4812
|
case "sqlite":
|
|
4811
|
-
if (config.runtime === "workers") databaseUrl = "http://127.0.0.1:8080";
|
|
4813
|
+
if (config.runtime === "workers" || webDeploy === "wrangler" || serverDeploy === "wrangler" || webDeploy === "alchemy" || serverDeploy === "alchemy") databaseUrl = "http://127.0.0.1:8080";
|
|
4812
4814
|
else {
|
|
4813
4815
|
const dbAppDir = backend === "self" ? "apps/web" : "apps/server";
|
|
4814
4816
|
databaseUrl = `file:${path.join(config.projectDir, dbAppDir, "local.db")}`;
|
|
@@ -6548,6 +6550,7 @@ async function displayPostInstallInstructions(config) {
|
|
|
6548
6550
|
let output = `${pc.bold("Next steps")}\n${pc.cyan("1.")} ${cdCmd}\n`;
|
|
6549
6551
|
let stepCounter = 2;
|
|
6550
6552
|
if (!depsInstalled) output += `${pc.cyan(`${stepCounter++}.`)} ${packageManager} install\n`;
|
|
6553
|
+
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
6554
|
if (isConvex) {
|
|
6552
6555
|
output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} dev:setup\n${pc.dim(" (this will guide you through Convex project setup)")}\n`;
|
|
6553
6556
|
output += `${pc.cyan(`${stepCounter++}.`)} Copy environment variables from\n${pc.white(" packages/backend/.env.local")} to ${pc.white("apps/*/.env")}\n`;
|
|
@@ -6640,10 +6643,6 @@ async function getDatabaseInstructions(database, orm, runCmd, runtime, dbSetup,
|
|
|
6640
6643
|
if (dbSetup === "docker") instructions.push(`${pc.cyan("•")} Start docker container: ${`${runCmd} db:start`}`);
|
|
6641
6644
|
if (dbSetup !== "d1") instructions.push(`${pc.cyan("•")} Apply schema: ${`${runCmd} db:push`}`);
|
|
6642
6645
|
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
6646
|
} else if (orm === "mongoose") {
|
|
6648
6647
|
if (dbSetup === "docker") instructions.push(`${pc.cyan("•")} Start docker container: ${`${runCmd} db:start`}`);
|
|
6649
6648
|
} else if (orm === "none") instructions.push(`${pc.yellow("NOTE:")} Manual database schema setup\n required.`);
|
package/package.json
CHANGED