create-better-t-stack 3.41.2 → 3.41.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.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { D as setProcessMode, i as SchemaNameSchema, l as create, m as getSchemaResult, s as add, u as createBtsCli, v as types_exports, y as getLatestCLIVersion } from "./src-CCnlcJnd.mjs";
2
+ import { D as setProcessMode, i as SchemaNameSchema, l as create, m as getSchemaResult, s as add, u as createBtsCli, v as types_exports, y as getLatestCLIVersion } from "./src-BhgA6H5Y.mjs";
3
3
  import z from "zod";
4
4
  import { McpServer } from "@modelcontextprotocol/server";
5
5
  import { serveStdio } from "@modelcontextprotocol/server/stdio";
package/dist/index.d.mts CHANGED
@@ -355,6 +355,7 @@ declare const router: import("@trpc/server").TRPCBuiltRouter<{
355
355
  packageManager?: "bun" | "npm" | "pnpm" | undefined;
356
356
  projectDir?: string | undefined;
357
357
  dryRun?: boolean | undefined;
358
+ disableAnalytics?: boolean | undefined;
358
359
  };
359
360
  output: void;
360
361
  meta: TrpcCliMeta;
@@ -404,6 +405,7 @@ declare const router: import("@trpc/server").TRPCBuiltRouter<{
404
405
  install?: boolean | undefined;
405
406
  packageManager?: "bun" | "npm" | "pnpm" | undefined;
406
407
  dryRun?: boolean | undefined;
408
+ disableAnalytics?: boolean | undefined;
407
409
  };
408
410
  output: AddResult;
409
411
  meta: TrpcCliMeta;
@@ -476,7 +478,7 @@ declare function builder(): Promise<void>;
476
478
  * ```
477
479
  */
478
480
  declare function createVirtual(options: Partial<Omit<types_d_exports.ProjectConfig, "projectDir" | "relativePath">>): Promise<Result$1<VirtualFileTree$1, GeneratorError$1>>;
479
- type AddOptions = Pick<types_d_exports.AddInput, "addons" | "addonOptions" | "package" | "install" | "packageManager" | "projectDir" | "dryRun">;
481
+ type AddOptions = Pick<types_d_exports.AddInput, "addons" | "addonOptions" | "package" | "install" | "packageManager" | "projectDir" | "dryRun" | "disableAnalytics">;
480
482
  /**
481
483
  * Programmatic API to add addons or a workspace package to an existing Better-T-Stack project.
482
484
  *
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { C as DirectoryConflictError, E as ValidationError, S as DatabaseSetupError, T as UserCancelledError, _ as ProjectLauncherSchema, a as TEMPLATE_COUNT, b as CLIError, 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 ProjectCreationError, x as CompatibilityError } from "./src-CCnlcJnd.mjs";
2
+ import { C as DirectoryConflictError, E as ValidationError, S as DatabaseSetupError, T as UserCancelledError, _ as ProjectLauncherSchema, a as TEMPLATE_COUNT, b as CLIError, 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 ProjectCreationError, x as CompatibilityError } from "./src-BhgA6H5Y.mjs";
3
3
  export { CLIError, CompatibilityError, DatabaseSetupError, DirectoryConflictError, EMBEDDED_TEMPLATES, GeneratorError, ProjectCreationError, ProjectLauncherSchema, Result, SchemaNameSchema, TEMPLATE_COUNT, UserCancelledError, ValidationError, VirtualFileSystem, add, builder, create, createBtsCli, createVirtual, docs, generate, getSchemaResult, router, sponsors };
@@ -4886,7 +4886,8 @@ async function addHandler(input, options = {}) {
4886
4886
  const { silent = false, mode } = options;
4887
4887
  return runWithContextAsync({
4888
4888
  silent,
4889
- mode
4889
+ mode,
4890
+ analyticsDisabled: input.disableAnalytics
4890
4891
  }, async () => {
4891
4892
  const result = await addHandlerInternal(input);
4892
4893
  await reportAddOutcome(input, result);
@@ -9431,7 +9432,8 @@ const router = t.router({
9431
9432
  install: z.boolean().optional().default(false).describe("Install dependencies after adding"),
9432
9433
  packageManager: types_exports.PackageManagerSchema.optional().describe("Package manager to use"),
9433
9434
  projectDir: z.string().optional().describe("Project directory (defaults to current)"),
9434
- dryRun: z.boolean().optional().default(false).describe("Preview addon changes without writing files")
9435
+ dryRun: z.boolean().optional().default(false).describe("Preview addon changes without writing files"),
9436
+ disableAnalytics: z.boolean().optional().default(false).describe("Disable analytics")
9435
9437
  })).mutation(async ({ input }) => {
9436
9438
  await addHandler(input);
9437
9439
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "3.41.2",
3
+ "version": "3.41.3",
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",
@@ -69,8 +69,8 @@
69
69
  "prepublishOnly": "npm run build"
70
70
  },
71
71
  "dependencies": {
72
- "@better-t-stack/template-generator": "^3.41.2",
73
- "@better-t-stack/types": "^3.41.2",
72
+ "@better-t-stack/template-generator": "^3.41.3",
73
+ "@better-t-stack/types": "^3.41.3",
74
74
  "@clack/core": "^1.4.3",
75
75
  "@clack/prompts": "^1.7.0",
76
76
  "@modelcontextprotocol/server": "2.0.0",