create-better-t-stack 3.2.19 → 3.2.20
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-BjWlXInp.js → src-CQps1oXf.js} +3 -0
- 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-CQps1oXf.js";
|
|
3
3
|
|
|
4
4
|
export { builder, createBtsCli, docs, init, router, sponsors };
|
|
@@ -616,6 +616,7 @@ async function getApiChoice(Api, frontend, backend) {
|
|
|
616
616
|
//#region src/prompts/auth.ts
|
|
617
617
|
async function getAuthChoice(auth, backend, frontend) {
|
|
618
618
|
if (auth !== void 0) return auth;
|
|
619
|
+
if (backend === "none") return "none";
|
|
619
620
|
if (backend === "convex") {
|
|
620
621
|
const supportedBetterAuthFrontends = frontend?.some((f) => [
|
|
621
622
|
"tanstack-router",
|
|
@@ -1070,6 +1071,7 @@ async function getPackageManagerChoice(packageManager) {
|
|
|
1070
1071
|
//#region src/prompts/payments.ts
|
|
1071
1072
|
async function getPaymentsChoice(payments, auth, backend, frontends) {
|
|
1072
1073
|
if (payments !== void 0) return payments;
|
|
1074
|
+
if (backend === "none") return "none";
|
|
1073
1075
|
if (!(auth === "better-auth" && backend !== "convex" && (frontends?.length === 0 || splitFrontends(frontends).web.length > 0))) return "none";
|
|
1074
1076
|
const response = await select({
|
|
1075
1077
|
message: "Select payments provider",
|
|
@@ -1746,6 +1748,7 @@ function validateBackendNoneConstraints(config, providedFlags) {
|
|
|
1746
1748
|
if (has("orm") && config.orm !== "none") exitWithError("Backend 'none' requires '--orm none'. Please remove the --orm flag or set it to 'none'.");
|
|
1747
1749
|
if (has("api") && config.api !== "none") exitWithError("Backend 'none' requires '--api none'. Please remove the --api flag or set it to 'none'.");
|
|
1748
1750
|
if (has("auth") && config.auth !== "none") exitWithError("Backend 'none' requires '--auth none'. Please remove the --auth flag or set it to 'none'.");
|
|
1751
|
+
if (has("payments") && config.payments !== "none") exitWithError("Backend 'none' requires '--payments none'. Please remove the --payments flag or set it to 'none'.");
|
|
1749
1752
|
if (has("dbSetup") && config.dbSetup !== "none") exitWithError("Backend 'none' requires '--db-setup none'. Please remove the --db-setup flag or set it to 'none'.");
|
|
1750
1753
|
if (has("serverDeploy") && config.serverDeploy !== "none") exitWithError("Backend 'none' requires '--server-deploy none'. Please remove the --server-deploy flag or set it to 'none'.");
|
|
1751
1754
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.20",
|
|
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",
|