create-better-t-stack 3.36.5 → 3.38.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.d.mts CHANGED
@@ -1 +1 @@
1
- export { };
1
+ export {}
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-DpdI3cqy.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-Cbu9a6bq.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.d.mts CHANGED
@@ -1,13 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import * as _$_trpc_server0 from "@trpc/server";
3
- import * as _$better_result0 from "better-result";
4
2
  import { Result, Result as Result$1 } from "better-result";
5
3
  import { TrpcCliMeta, createCli } from "trpc-cli";
6
4
  import z from "zod";
7
5
  import { EMBEDDED_TEMPLATES, GeneratorError, GeneratorError as GeneratorError$1, GeneratorOptions, TEMPLATE_COUNT, VirtualDirectory, VirtualFile, VirtualFileSystem, VirtualFileTree, VirtualFileTree as VirtualFileTree$1, VirtualNode, generate } from "@better-t-stack/template-generator";
8
-
9
- //#region src/types.d.ts
10
-
11
6
  import * as import__better_t_stack_types from "@better-t-stack/types";
12
7
  //#endregion
13
8
  //#region src/helpers/core/command-handlers.d.ts
@@ -36,7 +31,7 @@ interface AddResult {
36
31
  }
37
32
  //#endregion
38
33
  //#region src/utils/errors.d.ts
39
- declare const UserCancelledError_base: _$better_result0.TaggedErrorClass<"UserCancelledError", {
34
+ declare const UserCancelledError_base: import("better-result").TaggedErrorClass<"UserCancelledError", {
40
35
  message: string;
41
36
  }>;
42
37
  /**
@@ -47,7 +42,7 @@ declare class UserCancelledError extends UserCancelledError_base {
47
42
  message?: string;
48
43
  });
49
44
  }
50
- declare const CLIError_base: _$better_result0.TaggedErrorClass<"CLIError", {
45
+ declare const CLIError_base: import("better-result").TaggedErrorClass<"CLIError", {
51
46
  message: string;
52
47
  cause?: unknown;
53
48
  }>;
@@ -55,7 +50,7 @@ declare const CLIError_base: _$better_result0.TaggedErrorClass<"CLIError", {
55
50
  * General CLI error for validation failures, invalid flags, etc.
56
51
  */
57
52
  declare class CLIError extends CLIError_base {}
58
- declare const ValidationError_base: _$better_result0.TaggedErrorClass<"ValidationError", {
53
+ declare const ValidationError_base: import("better-result").TaggedErrorClass<"ValidationError", {
59
54
  field?: string;
60
55
  value?: unknown;
61
56
  message: string;
@@ -70,7 +65,7 @@ declare class ValidationError extends ValidationError_base {
70
65
  message: string;
71
66
  });
72
67
  }
73
- declare const CompatibilityError_base: _$better_result0.TaggedErrorClass<"CompatibilityError", {
68
+ declare const CompatibilityError_base: import("better-result").TaggedErrorClass<"CompatibilityError", {
74
69
  options: string[];
75
70
  message: string;
76
71
  }>;
@@ -83,7 +78,7 @@ declare class CompatibilityError extends CompatibilityError_base {
83
78
  message: string;
84
79
  });
85
80
  }
86
- declare const DirectoryConflictError_base: _$better_result0.TaggedErrorClass<"DirectoryConflictError", {
81
+ declare const DirectoryConflictError_base: import("better-result").TaggedErrorClass<"DirectoryConflictError", {
87
82
  directory: string;
88
83
  message: string;
89
84
  }>;
@@ -95,7 +90,7 @@ declare class DirectoryConflictError extends DirectoryConflictError_base {
95
90
  directory: string;
96
91
  });
97
92
  }
98
- declare const ProjectCreationError_base: _$better_result0.TaggedErrorClass<"ProjectCreationError", {
93
+ declare const ProjectCreationError_base: import("better-result").TaggedErrorClass<"ProjectCreationError", {
99
94
  phase: string;
100
95
  message: string;
101
96
  cause?: unknown;
@@ -110,7 +105,7 @@ declare class ProjectCreationError extends ProjectCreationError_base {
110
105
  cause?: unknown;
111
106
  });
112
107
  }
113
- declare const DatabaseSetupError_base: _$better_result0.TaggedErrorClass<"DatabaseSetupError", {
108
+ declare const DatabaseSetupError_base: import("better-result").TaggedErrorClass<"DatabaseSetupError", {
114
109
  provider: string;
115
110
  message: string;
116
111
  cause?: unknown;
@@ -157,13 +152,13 @@ declare const SchemaNameSchema: z.ZodDefault<z.ZodEnum<{
157
152
  }>>;
158
153
  type SchemaName = z.infer<typeof SchemaNameSchema>;
159
154
  declare function getSchemaResult(name: SchemaName): unknown;
160
- declare const router: _$_trpc_server0.TRPCBuiltRouter<{
155
+ declare const router: import("@trpc/server").TRPCBuiltRouter<{
161
156
  ctx: object;
162
157
  meta: TrpcCliMeta;
163
- errorShape: _$_trpc_server0.TRPCDefaultErrorShape;
158
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
164
159
  transformer: false;
165
- }, _$_trpc_server0.TRPCDecorateCreateRouterOptions<{
166
- create: _$_trpc_server0.TRPCMutationProcedure<{
160
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
161
+ create: import("@trpc/server").TRPCMutationProcedure<{
167
162
  input: [string | undefined, {
168
163
  template?: "none" | "mern" | "pern" | "t3" | "uniwind" | undefined;
169
164
  yes?: boolean | undefined;
@@ -193,7 +188,7 @@ declare const router: _$_trpc_server0.TRPCBuiltRouter<{
193
188
  dbSetupOptions?: {
194
189
  mode?: "manual" | "auto" | undefined;
195
190
  neon?: {
196
- method?: "neondb" | "neonctl" | undefined;
191
+ method?: "neon" | "neon-new" | "neondb" | "neonctl" | undefined;
197
192
  projectName?: string | undefined;
198
193
  regionId?: string | undefined;
199
194
  } | undefined;
@@ -210,7 +205,7 @@ declare const router: _$_trpc_server0.TRPCBuiltRouter<{
210
205
  output: CreateProjectResult | undefined;
211
206
  meta: TrpcCliMeta;
212
207
  }>;
213
- createJson: _$_trpc_server0.TRPCMutationProcedure<{
208
+ createJson: import("@trpc/server").TRPCMutationProcedure<{
214
209
  input: {
215
210
  projectName?: string | undefined;
216
211
  template?: "none" | "mern" | "pern" | "t3" | "uniwind" | undefined;
@@ -224,7 +219,7 @@ declare const router: _$_trpc_server0.TRPCBuiltRouter<{
224
219
  devPort?: number | undefined;
225
220
  } | undefined;
226
221
  fumadocs?: {
227
- template: "react-router" | "tanstack-start" | "next-mdx" | "next-mdx-static" | "waku" | "react-router-spa" | "tanstack-start-spa";
222
+ template: "react-router" | "tanstack-start" | "astro" | "next-mdx" | "next-mdx-static" | "waku" | "react-router-spa" | "tanstack-start-spa";
228
223
  devPort?: number | undefined;
229
224
  search?: "orama" | "orama-cloud" | undefined;
230
225
  ogImage?: "next-og" | "takumi" | undefined;
@@ -236,11 +231,11 @@ declare const router: _$_trpc_server0.TRPCBuiltRouter<{
236
231
  mcp?: {
237
232
  scope?: "project" | "global" | undefined;
238
233
  servers?: ("nx" | "better-auth" | "clerk" | "polar" | "neon" | "planetscale" | "supabase" | "convex" | "better-t-stack" | "context7" | "cloudflare-docs" | "shadcn" | "next-devtools" | "nuxt-docs" | "nuxt-ui-docs" | "svelte-docs" | "astro-docs" | "expo")[] | undefined;
239
- agents?: ("antigravity" | "cline" | "cline-cli" | "cursor" | "claude-code" | "codex" | "opencode" | "gemini-cli" | "github-copilot-cli" | "mcporter" | "vscode" | "zed" | "claude-desktop" | "goose")[] | undefined;
234
+ agents?: ("antigravity" | "cline" | "cline-cli" | "cursor" | "claude-code" | "codex" | "opencode" | "gemini-cli" | "github-copilot-cli" | "grok-build" | "mcporter" | "vscode" | "windsurf" | "zed" | "claude-desktop" | "goose")[] | undefined;
240
235
  } | undefined;
241
236
  skills?: {
242
237
  scope?: "project" | "global" | undefined;
243
- agents?: ("antigravity" | "cline" | "cursor" | "claude-code" | "codex" | "opencode" | "gemini-cli" | "goose" | "github-copilot" | "windsurf" | "roo" | "kilo" | "openhands" | "trae" | "amp" | "pi" | "qoder" | "qwen-code" | "kiro-cli" | "droid" | "command-code" | "clawdbot" | "zencoder" | "neovate" | "mcpjam")[] | undefined;
238
+ agents?: ("antigravity" | "cline" | "cursor" | "claude-code" | "codex" | "opencode" | "gemini-cli" | "windsurf" | "zed" | "goose" | "universal" | "adal" | "aider-desk" | "amp" | "antigravity-cli" | "astrbot" | "augment" | "autohand-code" | "bob" | "codearts-agent" | "codebuddy" | "codemaker" | "codestudio" | "command-code" | "continue" | "cortex" | "crush" | "deepagents" | "devin" | "dexto" | "droid" | "eve" | "firebender" | "forgecode" | "github-copilot" | "grok" | "hermes-agent" | "iflow-cli" | "inference-sh" | "jazz" | "junie" | "kilo" | "kimchi" | "kimi-code-cli" | "kiro-cli" | "kode" | "lingma" | "loaf" | "mcpjam" | "mistral-vibe" | "moxby" | "mux" | "neovate" | "ona" | "clawdbot" | "openclaw" | "openhands" | "pi" | "pochi" | "promptscript" | "qoder" | "qoder-cn" | "qwen-code" | "reasonix" | "replit" | "roo" | "rovodev" | "tabnine-cli" | "terramind" | "tinycloud" | "trae" | "trae-cn" | "warp" | "zcode" | "zencoder" | "zenflow")[] | undefined;
244
239
  selections?: {
245
240
  source: "vercel-labs/agent-skills" | "vercel/ai" | "vercel/turborepo" | "yusukebe/hono-skill" | "vercel-labs/next-skills" | "nuxt/ui" | "heroui-inc/heroui" | "shadcn/ui" | "better-auth/skills" | "clerk/skills" | "neondatabase/agent-skills" | "supabase/agent-skills" | "planetscale/database-skills" | "expo/skills" | "prisma/skills" | "elysiajs/skills" | "waynesutton/convexskills" | "msmps/opentui-skill" | "haydenbleasel/ultracite" | "https://www.evlog.dev";
246
241
  skills: string[];
@@ -248,15 +243,15 @@ declare const router: _$_trpc_server0.TRPCBuiltRouter<{
248
243
  } | undefined;
249
244
  ultracite?: {
250
245
  linter?: "biome" | "oxlint" | undefined;
251
- editors?: ("void" | "antigravity" | "cursor" | "vscode" | "zed" | "windsurf" | "trae" | "codebuddy" | "bob" | "kiro")[] | undefined;
252
- agents?: ("vercel" | "cline" | "codex" | "opencode" | "goose" | "amp" | "pi" | "qoder" | "droid" | "zencoder" | "mcpjam" | "bob" | "universal" | "claude" | "jules" | "replit" | "devin" | "lovable" | "ona" | "openclaw" | "continue" | "snowflake-cortex" | "deepagents" | "kimi-cli" | "mux" | "adal" | "copilot" | "aider" | "firebase-studio" | "open-hands" | "gemini" | "junie" | "augmentcode" | "kilo-code" | "roo-code" | "warp" | "crush" | "qwen" | "amazon-q-cli" | "firebender" | "cursor-cli" | "mistral-vibe")[] | undefined;
246
+ editors?: ("void" | "antigravity" | "cursor" | "vscode" | "windsurf" | "zed" | "bob" | "codebuddy" | "trae" | "kiro")[] | undefined;
247
+ agents?: ("vercel" | "cline" | "codex" | "opencode" | "goose" | "universal" | "adal" | "amp" | "bob" | "continue" | "crush" | "deepagents" | "devin" | "droid" | "firebender" | "junie" | "mcpjam" | "mistral-vibe" | "mux" | "ona" | "openclaw" | "pi" | "qoder" | "replit" | "warp" | "zencoder" | "claude" | "jules" | "lovable" | "snowflake-cortex" | "kimi-cli" | "copilot" | "aider" | "firebase-studio" | "open-hands" | "gemini" | "augmentcode" | "kilo-code" | "roo-code" | "qwen" | "amazon-q-cli" | "cursor-cli")[] | undefined;
253
248
  hooks?: ("cursor" | "windsurf" | "codebuddy" | "claude" | "copilot")[] | undefined;
254
249
  } | undefined;
255
250
  } | undefined;
256
251
  dbSetupOptions?: {
257
252
  mode?: "manual" | "auto" | undefined;
258
253
  neon?: {
259
- method?: "neondb" | "neonctl" | undefined;
254
+ method?: "neon" | "neon-new" | "neondb" | "neonctl" | undefined;
260
255
  projectName?: string | undefined;
261
256
  regionId?: string | undefined;
262
257
  } | undefined;
@@ -293,39 +288,40 @@ declare const router: _$_trpc_server0.TRPCBuiltRouter<{
293
288
  output: CreateProjectResult;
294
289
  meta: TrpcCliMeta;
295
290
  }>;
296
- schema: _$_trpc_server0.TRPCQueryProcedure<{
291
+ schema: import("@trpc/server").TRPCQueryProcedure<{
297
292
  input: {
298
293
  name?: "all" | "cli" | "database" | "orm" | "backend" | "runtime" | "frontend" | "addons" | "examples" | "packageManager" | "databaseSetup" | "api" | "auth" | "payments" | "webDeploy" | "serverDeploy" | "directoryConflict" | "template" | "addonOptions" | "dbSetupOptions" | "createInput" | "addInput" | "projectConfig" | "betterTStackConfig" | "betterTStackConfigFile" | "initResult" | undefined;
299
294
  };
300
295
  output: unknown;
301
296
  meta: TrpcCliMeta;
302
297
  }>;
303
- sponsors: _$_trpc_server0.TRPCMutationProcedure<{
298
+ sponsors: import("@trpc/server").TRPCMutationProcedure<{
304
299
  input: void;
305
300
  output: void;
306
301
  meta: TrpcCliMeta;
307
302
  }>;
308
- docs: _$_trpc_server0.TRPCMutationProcedure<{
303
+ docs: import("@trpc/server").TRPCMutationProcedure<{
309
304
  input: void;
310
305
  output: void;
311
306
  meta: TrpcCliMeta;
312
307
  }>;
313
- builder: _$_trpc_server0.TRPCMutationProcedure<{
308
+ builder: import("@trpc/server").TRPCMutationProcedure<{
314
309
  input: void;
315
310
  output: void;
316
311
  meta: TrpcCliMeta;
317
312
  }>;
318
- add: _$_trpc_server0.TRPCMutationProcedure<{
313
+ add: import("@trpc/server").TRPCMutationProcedure<{
319
314
  input: {
320
315
  addons?: ("none" | "pwa" | "tauri" | "electrobun" | "starlight" | "biome" | "lefthook" | "husky" | "mcp" | "turborepo" | "nx" | "vite-plus" | "fumadocs" | "ultracite" | "oxlint" | "opentui" | "wxt" | "skills" | "evlog")[] | undefined;
321
316
  install?: boolean | undefined;
322
317
  packageManager?: "bun" | "npm" | "pnpm" | undefined;
323
318
  projectDir?: string | undefined;
319
+ dryRun?: boolean | undefined;
324
320
  };
325
321
  output: void;
326
322
  meta: TrpcCliMeta;
327
323
  }>;
328
- addJson: _$_trpc_server0.TRPCMutationProcedure<{
324
+ addJson: import("@trpc/server").TRPCMutationProcedure<{
329
325
  input: {
330
326
  addons?: ("none" | "pwa" | "tauri" | "electrobun" | "starlight" | "biome" | "lefthook" | "husky" | "mcp" | "turborepo" | "nx" | "vite-plus" | "fumadocs" | "ultracite" | "oxlint" | "opentui" | "wxt" | "skills" | "evlog")[] | undefined;
331
327
  addonOptions?: {
@@ -334,7 +330,7 @@ declare const router: _$_trpc_server0.TRPCBuiltRouter<{
334
330
  devPort?: number | undefined;
335
331
  } | undefined;
336
332
  fumadocs?: {
337
- template: "react-router" | "tanstack-start" | "next-mdx" | "next-mdx-static" | "waku" | "react-router-spa" | "tanstack-start-spa";
333
+ template: "react-router" | "tanstack-start" | "astro" | "next-mdx" | "next-mdx-static" | "waku" | "react-router-spa" | "tanstack-start-spa";
338
334
  devPort?: number | undefined;
339
335
  search?: "orama" | "orama-cloud" | undefined;
340
336
  ogImage?: "next-og" | "takumi" | undefined;
@@ -346,11 +342,11 @@ declare const router: _$_trpc_server0.TRPCBuiltRouter<{
346
342
  mcp?: {
347
343
  scope?: "project" | "global" | undefined;
348
344
  servers?: ("nx" | "better-auth" | "clerk" | "polar" | "neon" | "planetscale" | "supabase" | "convex" | "better-t-stack" | "context7" | "cloudflare-docs" | "shadcn" | "next-devtools" | "nuxt-docs" | "nuxt-ui-docs" | "svelte-docs" | "astro-docs" | "expo")[] | undefined;
349
- agents?: ("antigravity" | "cline" | "cline-cli" | "cursor" | "claude-code" | "codex" | "opencode" | "gemini-cli" | "github-copilot-cli" | "mcporter" | "vscode" | "zed" | "claude-desktop" | "goose")[] | undefined;
345
+ agents?: ("antigravity" | "cline" | "cline-cli" | "cursor" | "claude-code" | "codex" | "opencode" | "gemini-cli" | "github-copilot-cli" | "grok-build" | "mcporter" | "vscode" | "windsurf" | "zed" | "claude-desktop" | "goose")[] | undefined;
350
346
  } | undefined;
351
347
  skills?: {
352
348
  scope?: "project" | "global" | undefined;
353
- agents?: ("antigravity" | "cline" | "cursor" | "claude-code" | "codex" | "opencode" | "gemini-cli" | "goose" | "github-copilot" | "windsurf" | "roo" | "kilo" | "openhands" | "trae" | "amp" | "pi" | "qoder" | "qwen-code" | "kiro-cli" | "droid" | "command-code" | "clawdbot" | "zencoder" | "neovate" | "mcpjam")[] | undefined;
349
+ agents?: ("antigravity" | "cline" | "cursor" | "claude-code" | "codex" | "opencode" | "gemini-cli" | "windsurf" | "zed" | "goose" | "universal" | "adal" | "aider-desk" | "amp" | "antigravity-cli" | "astrbot" | "augment" | "autohand-code" | "bob" | "codearts-agent" | "codebuddy" | "codemaker" | "codestudio" | "command-code" | "continue" | "cortex" | "crush" | "deepagents" | "devin" | "dexto" | "droid" | "eve" | "firebender" | "forgecode" | "github-copilot" | "grok" | "hermes-agent" | "iflow-cli" | "inference-sh" | "jazz" | "junie" | "kilo" | "kimchi" | "kimi-code-cli" | "kiro-cli" | "kode" | "lingma" | "loaf" | "mcpjam" | "mistral-vibe" | "moxby" | "mux" | "neovate" | "ona" | "clawdbot" | "openclaw" | "openhands" | "pi" | "pochi" | "promptscript" | "qoder" | "qoder-cn" | "qwen-code" | "reasonix" | "replit" | "roo" | "rovodev" | "tabnine-cli" | "terramind" | "tinycloud" | "trae" | "trae-cn" | "warp" | "zcode" | "zencoder" | "zenflow")[] | undefined;
354
350
  selections?: {
355
351
  source: "vercel-labs/agent-skills" | "vercel/ai" | "vercel/turborepo" | "yusukebe/hono-skill" | "vercel-labs/next-skills" | "nuxt/ui" | "heroui-inc/heroui" | "shadcn/ui" | "better-auth/skills" | "clerk/skills" | "neondatabase/agent-skills" | "supabase/agent-skills" | "planetscale/database-skills" | "expo/skills" | "prisma/skills" | "elysiajs/skills" | "waynesutton/convexskills" | "msmps/opentui-skill" | "haydenbleasel/ultracite" | "https://www.evlog.dev";
356
352
  skills: string[];
@@ -358,8 +354,8 @@ declare const router: _$_trpc_server0.TRPCBuiltRouter<{
358
354
  } | undefined;
359
355
  ultracite?: {
360
356
  linter?: "biome" | "oxlint" | undefined;
361
- editors?: ("void" | "antigravity" | "cursor" | "vscode" | "zed" | "windsurf" | "trae" | "codebuddy" | "bob" | "kiro")[] | undefined;
362
- agents?: ("vercel" | "cline" | "codex" | "opencode" | "goose" | "amp" | "pi" | "qoder" | "droid" | "zencoder" | "mcpjam" | "bob" | "universal" | "claude" | "jules" | "replit" | "devin" | "lovable" | "ona" | "openclaw" | "continue" | "snowflake-cortex" | "deepagents" | "kimi-cli" | "mux" | "adal" | "copilot" | "aider" | "firebase-studio" | "open-hands" | "gemini" | "junie" | "augmentcode" | "kilo-code" | "roo-code" | "warp" | "crush" | "qwen" | "amazon-q-cli" | "firebender" | "cursor-cli" | "mistral-vibe")[] | undefined;
357
+ editors?: ("void" | "antigravity" | "cursor" | "vscode" | "windsurf" | "zed" | "bob" | "codebuddy" | "trae" | "kiro")[] | undefined;
358
+ agents?: ("vercel" | "cline" | "codex" | "opencode" | "goose" | "universal" | "adal" | "amp" | "bob" | "continue" | "crush" | "deepagents" | "devin" | "droid" | "firebender" | "junie" | "mcpjam" | "mistral-vibe" | "mux" | "ona" | "openclaw" | "pi" | "qoder" | "replit" | "warp" | "zencoder" | "claude" | "jules" | "lovable" | "snowflake-cortex" | "kimi-cli" | "copilot" | "aider" | "firebase-studio" | "open-hands" | "gemini" | "augmentcode" | "kilo-code" | "roo-code" | "qwen" | "amazon-q-cli" | "cursor-cli")[] | undefined;
363
359
  hooks?: ("cursor" | "windsurf" | "codebuddy" | "claude" | "copilot")[] | undefined;
364
360
  } | undefined;
365
361
  } | undefined;
@@ -373,7 +369,7 @@ declare const router: _$_trpc_server0.TRPCBuiltRouter<{
373
369
  output: AddResult;
374
370
  meta: TrpcCliMeta;
375
371
  }>;
376
- history: _$_trpc_server0.TRPCMutationProcedure<{
372
+ history: import("@trpc/server").TRPCMutationProcedure<{
377
373
  input: {
378
374
  limit?: number | undefined;
379
375
  clear?: boolean | undefined;
@@ -441,6 +437,7 @@ declare function builder(): Promise<void>;
441
437
  * ```
442
438
  */
443
439
  declare function createVirtual(options: Partial<Omit<types_d_exports.ProjectConfig, "projectDir" | "relativePath">>): Promise<Result$1<VirtualFileTree$1, GeneratorError$1>>;
440
+ type AddOptions = Pick<types_d_exports.AddInput, "addons" | "addonOptions" | "install" | "packageManager" | "projectDir" | "dryRun">;
444
441
  /**
445
442
  * Programmatic API to add addons to an existing Better-T-Stack project.
446
443
  *
@@ -453,19 +450,12 @@ declare function createVirtual(options: Partial<Omit<types_d_exports.ProjectConf
453
450
  * install: true,
454
451
  * });
455
452
  *
456
- * if (result?.success) {
453
+ * if (result.success) {
457
454
  * console.log(`Added: ${result.addedAddons.join(", ")}`);
458
455
  * }
459
456
  * ```
460
457
  */
461
- declare function add(options?: {
462
- addons?: types_d_exports.Addons[];
463
- addonOptions?: types_d_exports.AddonOptions;
464
- install?: boolean;
465
- packageManager?: types_d_exports.PackageManager;
466
- projectDir?: string;
467
- dryRun?: boolean;
468
- }): Promise<AddResult | undefined>;
458
+ declare function add(options?: AddOptions): Promise<AddResult>;
469
459
  type API = import__better_t_stack_types.API;
470
460
  type AddonOptions = import__better_t_stack_types.AddonOptions;
471
461
  type Addons = import__better_t_stack_types.Addons;
@@ -483,8 +473,9 @@ type InitResult = import__better_t_stack_types.InitResult;
483
473
  type ORM = import__better_t_stack_types.ORM;
484
474
  type PackageManager = import__better_t_stack_types.PackageManager;
485
475
  type Payments = import__better_t_stack_types.Payments;
476
+ type ProjectConfig = import__better_t_stack_types.ProjectConfig;
486
477
  type Runtime = import__better_t_stack_types.Runtime;
487
478
  type ServerDeploy = import__better_t_stack_types.ServerDeploy;
488
479
  type Template = import__better_t_stack_types.Template;
489
480
  type WebDeploy = import__better_t_stack_types.WebDeploy;
490
- export { type API, type AddResult, type AddonOptions, type Addons, type Auth, type Backend, type BetterTStackConfig, CLIError, CompatibilityError, CreateError, type CreateInput, type Database, type DatabaseSetup, DatabaseSetupError, type DbSetupOptions, type DirectoryConflict, DirectoryConflictError, EMBEDDED_TEMPLATES, type Examples, type Frontend, GeneratorError, type GeneratorOptions, type InitResult, type ORM, type PackageManager, type Payments, ProjectCreationError, Result, type Runtime, SchemaName, SchemaNameSchema, type ServerDeploy, TEMPLATE_COUNT, type Template, UserCancelledError, ValidationError, type VirtualDirectory, type VirtualFile, VirtualFileSystem, type VirtualFileTree, type VirtualNode, type WebDeploy, add, builder, create, createBtsCli, createVirtual, docs, generate, getSchemaResult, router, sponsors };
481
+ export { type API, AddOptions, type AddResult, type AddonOptions, type Addons, type Auth, type Backend, type BetterTStackConfig, CLIError, CompatibilityError, CreateError, type CreateInput, type Database, type DatabaseSetup, DatabaseSetupError, type DbSetupOptions, type DirectoryConflict, DirectoryConflictError, EMBEDDED_TEMPLATES, type Examples, type Frontend, GeneratorError, type GeneratorOptions, type InitResult, type ORM, type PackageManager, type Payments, type ProjectConfig, ProjectCreationError, Result, type Runtime, SchemaName, SchemaNameSchema, type ServerDeploy, TEMPLATE_COUNT, type Template, UserCancelledError, ValidationError, type VirtualDirectory, type VirtualFile, VirtualFileSystem, type VirtualFileTree, type VirtualNode, type WebDeploy, add, builder, create, createBtsCli, createVirtual, docs, generate, getSchemaResult, router, sponsors };
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-DpdI3cqy.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-Cbu9a6bq.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 };