create-better-t-stack 3.19.5-pr874.b75f803 → 3.20.0
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.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-D_4oe5H9.mjs → src-xjt9vVj6.mjs} +19 -11
- package/package.json +3 -3
package/dist/cli.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { _ as DatabaseSetupError, a as VirtualFileSystem, b as UserCancelledError, c as create, d as docs, f as generate, g as CompatibilityError, h as CLIError, i as TEMPLATE_COUNT, l as createBtsCli, m as sponsors, n as GeneratorError, o as add, p as router, r as Result, s as builder, t as EMBEDDED_TEMPLATES, u as createVirtual, v as DirectoryConflictError, x as ValidationError, y as ProjectCreationError } from "./src-
|
|
2
|
+
import { _ as DatabaseSetupError, a as VirtualFileSystem, b as UserCancelledError, c as create, d as docs, f as generate, g as CompatibilityError, h as CLIError, i as TEMPLATE_COUNT, l as createBtsCli, m as sponsors, n as GeneratorError, o as add, p as router, r as Result, s as builder, t as EMBEDDED_TEMPLATES, u as createVirtual, v as DirectoryConflictError, x as ValidationError, y as ProjectCreationError } from "./src-xjt9vVj6.mjs";
|
|
3
3
|
|
|
4
4
|
export { CLIError, CompatibilityError, DatabaseSetupError, DirectoryConflictError, EMBEDDED_TEMPLATES, GeneratorError, ProjectCreationError, Result, TEMPLATE_COUNT, UserCancelledError, ValidationError, VirtualFileSystem, add, builder, create, createBtsCli, createVirtual, docs, generate, router, sponsors };
|
|
@@ -1448,14 +1448,6 @@ function uniqueValues$1(values) {
|
|
|
1448
1448
|
function hasReactBasedFrontend$1(frontend) {
|
|
1449
1449
|
return frontend.includes("react-router") || frontend.includes("tanstack-router") || frontend.includes("tanstack-start") || frontend.includes("next");
|
|
1450
1450
|
}
|
|
1451
|
-
function getPackageRunnerWithYesFlag(packageManager) {
|
|
1452
|
-
const prefix = getPackageRunnerPrefix(packageManager);
|
|
1453
|
-
const runner = prefix[0];
|
|
1454
|
-
if (runner === "bunx") return [...prefix, "-y"];
|
|
1455
|
-
if (runner === "npx") return [...prefix, "-y"];
|
|
1456
|
-
if (runner === "pnpm") return [...prefix, "--yes"];
|
|
1457
|
-
return prefix;
|
|
1458
|
-
}
|
|
1459
1451
|
function getRecommendedMcpServers(config) {
|
|
1460
1452
|
const servers = [];
|
|
1461
1453
|
servers.push({
|
|
@@ -1536,6 +1528,12 @@ function getRecommendedMcpServers(config) {
|
|
|
1536
1528
|
name: "better-auth",
|
|
1537
1529
|
target: "https://mcp.inkeep.com/better-auth/mcp"
|
|
1538
1530
|
});
|
|
1531
|
+
if (config.payments === "polar") servers.push({
|
|
1532
|
+
key: "polar",
|
|
1533
|
+
label: "Polar",
|
|
1534
|
+
name: "polar",
|
|
1535
|
+
target: "https://mcp.polar.sh/mcp/polar-mcp"
|
|
1536
|
+
});
|
|
1539
1537
|
return servers;
|
|
1540
1538
|
}
|
|
1541
1539
|
function filterAgentsForScope(scope) {
|
|
@@ -1599,7 +1597,7 @@ async function setupMcp(config) {
|
|
|
1599
1597
|
if (selectedServers.length === 0) return Result.ok(void 0);
|
|
1600
1598
|
const installSpinner = spinner();
|
|
1601
1599
|
installSpinner.start("Installing MCP servers...");
|
|
1602
|
-
const runner =
|
|
1600
|
+
const runner = getPackageRunnerPrefix(packageManager);
|
|
1603
1601
|
const globalFlags = scope === "global" ? ["-g"] : [];
|
|
1604
1602
|
for (const server of selectedServers) {
|
|
1605
1603
|
const transportFlags = server.transport ? ["-t", server.transport] : [];
|
|
@@ -3588,7 +3586,7 @@ async function getProjectName(initialName) {
|
|
|
3588
3586
|
*/
|
|
3589
3587
|
function isTelemetryEnabled() {
|
|
3590
3588
|
const BTS_TELEMETRY_DISABLED = process.env.BTS_TELEMETRY_DISABLED;
|
|
3591
|
-
const BTS_TELEMETRY = "
|
|
3589
|
+
const BTS_TELEMETRY = "1";
|
|
3592
3590
|
if (BTS_TELEMETRY_DISABLED !== void 0) return BTS_TELEMETRY_DISABLED !== "1";
|
|
3593
3591
|
if (BTS_TELEMETRY !== void 0) return BTS_TELEMETRY === "1";
|
|
3594
3592
|
return true;
|
|
@@ -3596,7 +3594,17 @@ function isTelemetryEnabled() {
|
|
|
3596
3594
|
|
|
3597
3595
|
//#endregion
|
|
3598
3596
|
//#region src/utils/analytics.ts
|
|
3599
|
-
|
|
3597
|
+
const CONVEX_INGEST_URL = "https://striped-seahorse-863.convex.site/api/analytics/ingest";
|
|
3598
|
+
async function sendConvexEvent(payload) {
|
|
3599
|
+
await Result.tryPromise({
|
|
3600
|
+
try: () => fetch(CONVEX_INGEST_URL, {
|
|
3601
|
+
method: "POST",
|
|
3602
|
+
headers: { "Content-Type": "application/json" },
|
|
3603
|
+
body: JSON.stringify(payload)
|
|
3604
|
+
}),
|
|
3605
|
+
catch: () => void 0
|
|
3606
|
+
});
|
|
3607
|
+
}
|
|
3600
3608
|
async function trackProjectCreation(config, disableAnalytics = false) {
|
|
3601
3609
|
if (!isTelemetryEnabled() || disableAnalytics) return;
|
|
3602
3610
|
const { projectName: _projectName, projectDir: _projectDir, relativePath: _relativePath, ...safeConfig } = config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.20.0",
|
|
4
4
|
"description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"better-auth",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"prepublishOnly": "npm run build"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@better-t-stack/template-generator": "3.
|
|
74
|
-
"@better-t-stack/types": "3.
|
|
73
|
+
"@better-t-stack/template-generator": "^3.20.0",
|
|
74
|
+
"@better-t-stack/types": "^3.20.0",
|
|
75
75
|
"@clack/core": "^1.0.0",
|
|
76
76
|
"@clack/prompts": "^1.0.0",
|
|
77
77
|
"@orpc/server": "^1.13.4",
|