create-better-t-stack 3.28.1-pr1036.ff20c00 → 3.28.2

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/README.md CHANGED
@@ -5,7 +5,7 @@ A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with
5
5
  ## Sponsors
6
6
 
7
7
  <p align="center">
8
- <img src="https://sponsors.amanv.dev/sponsors.png" alt="Sponsors">
8
+ <img src="https://sponsors.better-t-stack.dev/sponsors.png" alt="Sponsors">
9
9
  </p>
10
10
 
11
11
  ![demo](https://cdn.jsdelivr.net/gh/amanvarshney01/create-better-t-stack@master/demo.gif)
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { _ as types_exports, i as SchemaNameSchema, l as create, m as getSchemaResult, s as add, u as createBtsCli, v as getLatestCLIVersion } from "./src-Bx8Ofji-.mjs";
2
+ import { _ as types_exports, i as SchemaNameSchema, l as create, m as getSchemaResult, s as add, u as createBtsCli, v as getLatestCLIVersion } from "./src-PtlLGeY1.mjs";
3
3
  import z from "zod";
4
4
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
5
5
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { C as ProjectCreationError, S as DirectoryConflictError, T as ValidationError, a as TEMPLATE_COUNT, b as CompatibilityError, c as builder, d as createVirtual, f as docs, g as sponsors, h as router, i as SchemaNameSchema, l as create, m as getSchemaResult, n as GeneratorError, o as VirtualFileSystem, p as generate, r as Result, s as add, t as EMBEDDED_TEMPLATES, u as createBtsCli, w as UserCancelledError, x as DatabaseSetupError, y as CLIError } from "./src-Bx8Ofji-.mjs";
2
+ import { C as ProjectCreationError, S as DirectoryConflictError, T as ValidationError, a as TEMPLATE_COUNT, b as CompatibilityError, c as builder, d as createVirtual, f as docs, g as sponsors, h as router, i as SchemaNameSchema, l as create, m as getSchemaResult, n as GeneratorError, o as VirtualFileSystem, p as generate, r as Result, s as add, t as EMBEDDED_TEMPLATES, u as createBtsCli, w as UserCancelledError, x as DatabaseSetupError, y as CLIError } from "./src-PtlLGeY1.mjs";
3
3
  export { CLIError, CompatibilityError, DatabaseSetupError, DirectoryConflictError, EMBEDDED_TEMPLATES, GeneratorError, ProjectCreationError, Result, SchemaNameSchema, TEMPLATE_COUNT, UserCancelledError, ValidationError, VirtualFileSystem, add, builder, create, createBtsCli, createVirtual, docs, generate, getSchemaResult, router, sponsors };
@@ -4868,14 +4868,24 @@ async function getProjectName(initialName) {
4868
4868
  */
4869
4869
  function isTelemetryEnabled() {
4870
4870
  const BTS_TELEMETRY_DISABLED = process.env.BTS_TELEMETRY_DISABLED;
4871
- const BTS_TELEMETRY = "0";
4871
+ const BTS_TELEMETRY = "1";
4872
4872
  if (BTS_TELEMETRY_DISABLED !== void 0) return BTS_TELEMETRY_DISABLED !== "1";
4873
4873
  if (BTS_TELEMETRY !== void 0) return BTS_TELEMETRY === "1";
4874
4874
  return true;
4875
4875
  }
4876
4876
  //#endregion
4877
4877
  //#region src/utils/analytics.ts
4878
- async function sendConvexEvent(payload) {}
4878
+ const CONVEX_INGEST_URL = "https://striped-seahorse-863.convex.site/api/analytics/ingest";
4879
+ async function sendConvexEvent(payload) {
4880
+ await Result.tryPromise({
4881
+ try: () => fetch(CONVEX_INGEST_URL, {
4882
+ method: "POST",
4883
+ headers: { "Content-Type": "application/json" },
4884
+ body: JSON.stringify(payload)
4885
+ }),
4886
+ catch: () => void 0
4887
+ });
4888
+ }
4879
4889
  async function trackProjectCreation(config, disableAnalytics = false) {
4880
4890
  if (!isTelemetryEnabled() || disableAnalytics) return;
4881
4891
  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.28.1-pr1036.ff20c00",
3
+ "version": "3.28.2",
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.28.1-pr1036.ff20c00",
74
- "@better-t-stack/types": "3.28.1-pr1036.ff20c00",
73
+ "@better-t-stack/template-generator": "^3.28.2",
74
+ "@better-t-stack/types": "^3.28.2",
75
75
  "@clack/core": "^1.3.0",
76
76
  "@clack/prompts": "^1.3.0",
77
77
  "@modelcontextprotocol/sdk": "1.29.0",