create-better-t-stack 3.7.4 → 3.8.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.
Files changed (31) hide show
  1. package/dist/{cli.js → cli.mjs} +1 -1
  2. package/dist/{index.d.ts → index.d.mts} +112 -254
  3. package/dist/index.mjs +4 -0
  4. package/dist/{src-B6YuFjPr.js → src-BDXa8gsB.mjs} +209 -359
  5. package/package.json +18 -17
  6. package/templates/api/orpc/server/package.json.hbs +0 -3
  7. package/templates/api/trpc/server/package.json.hbs +1 -4
  8. package/templates/auth/better-auth/server/base/package.json.hbs +1 -4
  9. package/templates/backend/convex/packages/backend/convex/README.md +1 -1
  10. package/templates/backend/convex/packages/backend/convex/{schema.ts → schema.ts.hbs} +2 -0
  11. package/templates/backend/convex/packages/backend/package.json.hbs +1 -2
  12. package/templates/backend/server/base/package.json.hbs +1 -3
  13. package/templates/db/base/package.json.hbs +1 -4
  14. package/templates/db/drizzle/base/src/schema/index.ts.hbs +7 -0
  15. package/templates/db/drizzle/mysql/src/index.ts.hbs +8 -0
  16. package/templates/db/drizzle/postgres/src/index.ts.hbs +8 -4
  17. package/templates/db/drizzle/sqlite/src/index.ts.hbs +6 -3
  18. package/templates/examples/todo/convex/packages/backend/convex/todos.ts.hbs +42 -0
  19. package/templates/frontend/native/bare/package.json.hbs +1 -2
  20. package/templates/frontend/native/unistyles/package.json.hbs +1 -2
  21. package/templates/frontend/native/uniwind/package.json.hbs +1 -2
  22. package/templates/frontend/nuxt/package.json.hbs +0 -1
  23. package/templates/frontend/react/tanstack-router/package.json.hbs +0 -1
  24. package/templates/frontend/react/tanstack-start/package.json.hbs +0 -1
  25. package/templates/frontend/solid/package.json.hbs +0 -1
  26. package/templates/frontend/svelte/package.json.hbs +0 -1
  27. package/dist/index.js +0 -4
  28. package/templates/backend/convex/packages/backend/convex/todos.ts +0 -42
  29. /package/dist/{cli.d.ts → cli.d.mts} +0 -0
  30. /package/templates/backend/convex/packages/backend/convex/{healthCheck.ts → healthCheck.ts.hbs} +0 -0
  31. /package/templates/backend/convex/packages/backend/convex/{tsconfig.json → tsconfig.json.hbs} +0 -0
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as createBtsCli } from "./src-B6YuFjPr.js";
2
+ import { n as createBtsCli } from "./src-BDXa8gsB.mjs";
3
3
 
4
4
  //#region src/cli.ts
5
5
  createBtsCli().run();
@@ -1,256 +1,45 @@
1
1
  #!/usr/bin/env node
2
2
  import * as _orpc_server0 from "@orpc/server";
3
3
  import * as trpc_cli0 from "trpc-cli";
4
- import z$1, { z } from "zod";
4
+ import z from "zod";
5
+ import { API, AddInput, Addons, Backend, BetterTStackConfig, CreateInput, Database, DatabaseSetup, DirectoryConflict, Examples, Frontend, InitResult, ORM, PackageManager, ProjectConfig, Runtime, ServerDeploy, Template, WebDeploy } from "@better-t-stack/types";
5
6
 
6
- //#region src/types.d.ts
7
- declare const DatabaseSchema: z.ZodEnum<{
8
- none: "none";
9
- sqlite: "sqlite";
10
- postgres: "postgres";
11
- mysql: "mysql";
12
- mongodb: "mongodb";
13
- }>;
14
- type Database = z.infer<typeof DatabaseSchema>;
15
- declare const ORMSchema: z.ZodEnum<{
16
- none: "none";
17
- drizzle: "drizzle";
18
- prisma: "prisma";
19
- mongoose: "mongoose";
20
- }>;
21
- type ORM = z.infer<typeof ORMSchema>;
22
- declare const BackendSchema: z.ZodEnum<{
23
- none: "none";
24
- hono: "hono";
25
- express: "express";
26
- fastify: "fastify";
27
- elysia: "elysia";
28
- convex: "convex";
29
- self: "self";
30
- }>;
31
- type Backend = z.infer<typeof BackendSchema>;
32
- declare const RuntimeSchema: z.ZodEnum<{
33
- none: "none";
34
- bun: "bun";
35
- node: "node";
36
- workers: "workers";
37
- }>;
38
- type Runtime = z.infer<typeof RuntimeSchema>;
39
- declare const FrontendSchema: z.ZodEnum<{
40
- none: "none";
41
- "tanstack-router": "tanstack-router";
42
- "react-router": "react-router";
43
- "tanstack-start": "tanstack-start";
44
- next: "next";
45
- nuxt: "nuxt";
46
- "native-bare": "native-bare";
47
- "native-uniwind": "native-uniwind";
48
- "native-unistyles": "native-unistyles";
49
- svelte: "svelte";
50
- solid: "solid";
51
- }>;
52
- type Frontend = z.infer<typeof FrontendSchema>;
53
- declare const AddonsSchema: z.ZodEnum<{
54
- none: "none";
55
- pwa: "pwa";
56
- tauri: "tauri";
57
- starlight: "starlight";
58
- biome: "biome";
59
- husky: "husky";
60
- ruler: "ruler";
61
- turborepo: "turborepo";
62
- fumadocs: "fumadocs";
63
- ultracite: "ultracite";
64
- oxlint: "oxlint";
65
- }>;
66
- type Addons = z.infer<typeof AddonsSchema>;
67
- declare const ExamplesSchema: z.ZodEnum<{
68
- none: "none";
69
- todo: "todo";
70
- ai: "ai";
71
- }>;
72
- type Examples = z.infer<typeof ExamplesSchema>;
73
- declare const PackageManagerSchema: z.ZodEnum<{
74
- npm: "npm";
75
- pnpm: "pnpm";
76
- bun: "bun";
77
- }>;
78
- type PackageManager = z.infer<typeof PackageManagerSchema>;
79
- declare const DatabaseSetupSchema: z.ZodEnum<{
80
- none: "none";
81
- turso: "turso";
82
- neon: "neon";
83
- "prisma-postgres": "prisma-postgres";
84
- planetscale: "planetscale";
85
- "mongodb-atlas": "mongodb-atlas";
86
- supabase: "supabase";
87
- d1: "d1";
88
- docker: "docker";
89
- }>;
90
- type DatabaseSetup = z.infer<typeof DatabaseSetupSchema>;
91
- declare const APISchema: z.ZodEnum<{
92
- none: "none";
93
- trpc: "trpc";
94
- orpc: "orpc";
95
- }>;
96
- type API = z.infer<typeof APISchema>;
97
- declare const AuthSchema: z.ZodEnum<{
98
- none: "none";
99
- "better-auth": "better-auth";
100
- clerk: "clerk";
101
- }>;
102
- type Auth = z.infer<typeof AuthSchema>;
103
- declare const PaymentsSchema: z.ZodEnum<{
104
- none: "none";
105
- polar: "polar";
106
- }>;
107
- type Payments = z.infer<typeof PaymentsSchema>;
108
- declare const WebDeploySchema: z.ZodEnum<{
109
- none: "none";
110
- alchemy: "alchemy";
111
- }>;
112
- type WebDeploy = z.infer<typeof WebDeploySchema>;
113
- declare const ServerDeploySchema: z.ZodEnum<{
114
- none: "none";
115
- alchemy: "alchemy";
116
- }>;
117
- type ServerDeploy = z.infer<typeof ServerDeploySchema>;
118
- declare const DirectoryConflictSchema: z.ZodEnum<{
119
- error: "error";
120
- merge: "merge";
121
- overwrite: "overwrite";
122
- increment: "increment";
123
- }>;
124
- type DirectoryConflict = z.infer<typeof DirectoryConflictSchema>;
125
- declare const TemplateSchema: z.ZodEnum<{
126
- mern: "mern";
127
- pern: "pern";
128
- t3: "t3";
129
- uniwind: "uniwind";
130
- none: "none";
131
- }>;
132
- type Template = z.infer<typeof TemplateSchema>;
133
- type CreateInput = {
134
- projectName?: string;
135
- template?: Template;
136
- yes?: boolean;
137
- yolo?: boolean;
138
- verbose?: boolean;
139
- database?: Database;
140
- orm?: ORM;
141
- auth?: Auth;
142
- payments?: Payments;
143
- frontend?: Frontend[];
144
- addons?: Addons[];
145
- examples?: Examples[];
146
- git?: boolean;
147
- packageManager?: PackageManager;
148
- install?: boolean;
149
- dbSetup?: DatabaseSetup;
150
- backend?: Backend;
151
- runtime?: Runtime;
152
- api?: API;
153
- webDeploy?: WebDeploy;
154
- serverDeploy?: ServerDeploy;
155
- directoryConflict?: DirectoryConflict;
156
- renderTitle?: boolean;
157
- disableAnalytics?: boolean;
158
- manualDb?: boolean;
159
- };
160
- type AddInput = {
161
- addons?: Addons[];
162
- webDeploy?: WebDeploy;
163
- serverDeploy?: ServerDeploy;
164
- projectDir?: string;
165
- install?: boolean;
166
- packageManager?: PackageManager;
167
- };
168
- interface ProjectConfig {
169
- projectName: string;
170
- projectDir: string;
171
- relativePath: string;
172
- database: Database;
173
- orm: ORM;
174
- backend: Backend;
175
- runtime: Runtime;
176
- frontend: Frontend[];
177
- addons: Addons[];
178
- examples: Examples[];
179
- auth: Auth;
180
- payments: Payments;
181
- git: boolean;
182
- packageManager: PackageManager;
183
- install: boolean;
184
- dbSetup: DatabaseSetup;
185
- api: API;
186
- webDeploy: WebDeploy;
187
- serverDeploy: ServerDeploy;
188
- }
189
- interface BetterTStackConfig {
190
- version: string;
191
- createdAt: string;
192
- database: Database;
193
- orm: ORM;
194
- backend: Backend;
195
- runtime: Runtime;
196
- frontend: Frontend[];
197
- addons: Addons[];
198
- examples: Examples[];
199
- auth: Auth;
200
- payments: Payments;
201
- packageManager: PackageManager;
202
- dbSetup: DatabaseSetup;
203
- api: API;
204
- webDeploy: WebDeploy;
205
- serverDeploy: ServerDeploy;
206
- }
207
- interface InitResult {
208
- success: boolean;
209
- projectConfig: ProjectConfig;
210
- reproducibleCommand: string;
211
- timeScaffolded: string;
212
- elapsedTimeMs: number;
213
- projectDirectory: string;
214
- relativePath: string;
215
- error?: string;
216
- }
217
- //#endregion
218
7
  //#region src/index.d.ts
219
8
  declare const router: {
220
- init: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, z$1.ZodTuple<[z$1.ZodOptional<z$1.ZodString>, z$1.ZodObject<{
221
- template: z$1.ZodOptional<z$1.ZodEnum<{
9
+ init: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, z.ZodTuple<[z.ZodOptional<z.ZodString>, z.ZodObject<{
10
+ template: z.ZodOptional<z.ZodEnum<{
11
+ none: "none";
222
12
  mern: "mern";
223
13
  pern: "pern";
224
14
  t3: "t3";
225
15
  uniwind: "uniwind";
226
- none: "none";
227
16
  }>>;
228
- yes: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
229
- yolo: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
230
- verbose: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
231
- database: z$1.ZodOptional<z$1.ZodEnum<{
17
+ yes: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18
+ yolo: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
19
+ verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
20
+ database: z.ZodOptional<z.ZodEnum<{
232
21
  none: "none";
233
22
  sqlite: "sqlite";
234
23
  postgres: "postgres";
235
24
  mysql: "mysql";
236
25
  mongodb: "mongodb";
237
26
  }>>;
238
- orm: z$1.ZodOptional<z$1.ZodEnum<{
27
+ orm: z.ZodOptional<z.ZodEnum<{
239
28
  none: "none";
240
29
  drizzle: "drizzle";
241
30
  prisma: "prisma";
242
31
  mongoose: "mongoose";
243
32
  }>>;
244
- auth: z$1.ZodOptional<z$1.ZodEnum<{
33
+ auth: z.ZodOptional<z.ZodEnum<{
245
34
  none: "none";
246
35
  "better-auth": "better-auth";
247
36
  clerk: "clerk";
248
37
  }>>;
249
- payments: z$1.ZodOptional<z$1.ZodEnum<{
38
+ payments: z.ZodOptional<z.ZodEnum<{
250
39
  none: "none";
251
40
  polar: "polar";
252
41
  }>>;
253
- frontend: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
42
+ frontend: z.ZodOptional<z.ZodArray<z.ZodEnum<{
254
43
  none: "none";
255
44
  "tanstack-router": "tanstack-router";
256
45
  "react-router": "react-router";
@@ -263,7 +52,7 @@ declare const router: {
263
52
  svelte: "svelte";
264
53
  solid: "solid";
265
54
  }>>>;
266
- addons: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
55
+ addons: z.ZodOptional<z.ZodArray<z.ZodEnum<{
267
56
  none: "none";
268
57
  pwa: "pwa";
269
58
  tauri: "tauri";
@@ -276,19 +65,19 @@ declare const router: {
276
65
  ultracite: "ultracite";
277
66
  oxlint: "oxlint";
278
67
  }>>>;
279
- examples: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
68
+ examples: z.ZodOptional<z.ZodArray<z.ZodEnum<{
280
69
  none: "none";
281
70
  todo: "todo";
282
71
  ai: "ai";
283
72
  }>>>;
284
- git: z$1.ZodOptional<z$1.ZodBoolean>;
285
- packageManager: z$1.ZodOptional<z$1.ZodEnum<{
73
+ git: z.ZodOptional<z.ZodBoolean>;
74
+ packageManager: z.ZodOptional<z.ZodEnum<{
75
+ bun: "bun";
286
76
  npm: "npm";
287
77
  pnpm: "pnpm";
288
- bun: "bun";
289
78
  }>>;
290
- install: z$1.ZodOptional<z$1.ZodBoolean>;
291
- dbSetup: z$1.ZodOptional<z$1.ZodEnum<{
79
+ install: z.ZodOptional<z.ZodBoolean>;
80
+ dbSetup: z.ZodOptional<z.ZodEnum<{
292
81
  none: "none";
293
82
  turso: "turso";
294
83
  neon: "neon";
@@ -299,7 +88,7 @@ declare const router: {
299
88
  d1: "d1";
300
89
  docker: "docker";
301
90
  }>>;
302
- backend: z$1.ZodOptional<z$1.ZodEnum<{
91
+ backend: z.ZodOptional<z.ZodEnum<{
303
92
  none: "none";
304
93
  hono: "hono";
305
94
  express: "express";
@@ -308,35 +97,35 @@ declare const router: {
308
97
  convex: "convex";
309
98
  self: "self";
310
99
  }>>;
311
- runtime: z$1.ZodOptional<z$1.ZodEnum<{
100
+ runtime: z.ZodOptional<z.ZodEnum<{
312
101
  none: "none";
313
102
  bun: "bun";
314
103
  node: "node";
315
104
  workers: "workers";
316
105
  }>>;
317
- api: z$1.ZodOptional<z$1.ZodEnum<{
106
+ api: z.ZodOptional<z.ZodEnum<{
318
107
  none: "none";
319
108
  trpc: "trpc";
320
109
  orpc: "orpc";
321
110
  }>>;
322
- webDeploy: z$1.ZodOptional<z$1.ZodEnum<{
111
+ webDeploy: z.ZodOptional<z.ZodEnum<{
323
112
  none: "none";
324
113
  alchemy: "alchemy";
325
114
  }>>;
326
- serverDeploy: z$1.ZodOptional<z$1.ZodEnum<{
115
+ serverDeploy: z.ZodOptional<z.ZodEnum<{
327
116
  none: "none";
328
117
  alchemy: "alchemy";
329
118
  }>>;
330
- directoryConflict: z$1.ZodOptional<z$1.ZodEnum<{
331
- error: "error";
119
+ directoryConflict: z.ZodOptional<z.ZodEnum<{
332
120
  merge: "merge";
333
121
  overwrite: "overwrite";
334
122
  increment: "increment";
123
+ error: "error";
335
124
  }>>;
336
- renderTitle: z$1.ZodOptional<z$1.ZodBoolean>;
337
- disableAnalytics: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
338
- manualDb: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
339
- }, z$1.core.$strip>], null>, _orpc_server0.Schema<{
125
+ renderTitle: z.ZodOptional<z.ZodBoolean>;
126
+ disableAnalytics: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
127
+ manualDb: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
128
+ }, z.core.$strip>], null>, _orpc_server0.Schema<{
340
129
  success: boolean;
341
130
  projectConfig: {
342
131
  projectName: string;
@@ -367,7 +156,27 @@ declare const router: {
367
156
  error: string;
368
157
  } | {
369
158
  success: boolean;
370
- projectConfig: ProjectConfig;
159
+ projectConfig: {
160
+ projectName: string;
161
+ projectDir: string;
162
+ relativePath: string;
163
+ database: "none" | "sqlite" | "postgres" | "mysql" | "mongodb";
164
+ orm: "none" | "drizzle" | "prisma" | "mongoose";
165
+ backend: "none" | "hono" | "express" | "fastify" | "elysia" | "convex" | "self";
166
+ runtime: "none" | "bun" | "node" | "workers";
167
+ frontend: ("none" | "tanstack-router" | "react-router" | "tanstack-start" | "next" | "nuxt" | "native-bare" | "native-uniwind" | "native-unistyles" | "svelte" | "solid")[];
168
+ addons: ("none" | "pwa" | "tauri" | "starlight" | "biome" | "husky" | "ruler" | "turborepo" | "fumadocs" | "ultracite" | "oxlint")[];
169
+ examples: ("none" | "todo" | "ai")[];
170
+ auth: "none" | "better-auth" | "clerk";
171
+ payments: "none" | "polar";
172
+ git: boolean;
173
+ packageManager: "bun" | "npm" | "pnpm";
174
+ install: boolean;
175
+ dbSetup: "none" | "turso" | "neon" | "prisma-postgres" | "planetscale" | "mongodb-atlas" | "supabase" | "d1" | "docker";
176
+ api: "none" | "trpc" | "orpc";
177
+ webDeploy: "none" | "alchemy";
178
+ serverDeploy: "none" | "alchemy";
179
+ };
371
180
  reproducibleCommand: string;
372
181
  timeScaffolded: string;
373
182
  elapsedTimeMs: number;
@@ -405,7 +214,27 @@ declare const router: {
405
214
  error: string;
406
215
  } | {
407
216
  success: boolean;
408
- projectConfig: ProjectConfig;
217
+ projectConfig: {
218
+ projectName: string;
219
+ projectDir: string;
220
+ relativePath: string;
221
+ database: "none" | "sqlite" | "postgres" | "mysql" | "mongodb";
222
+ orm: "none" | "drizzle" | "prisma" | "mongoose";
223
+ backend: "none" | "hono" | "express" | "fastify" | "elysia" | "convex" | "self";
224
+ runtime: "none" | "bun" | "node" | "workers";
225
+ frontend: ("none" | "tanstack-router" | "react-router" | "tanstack-start" | "next" | "nuxt" | "native-bare" | "native-uniwind" | "native-unistyles" | "svelte" | "solid")[];
226
+ addons: ("none" | "pwa" | "tauri" | "starlight" | "biome" | "husky" | "ruler" | "turborepo" | "fumadocs" | "ultracite" | "oxlint")[];
227
+ examples: ("none" | "todo" | "ai")[];
228
+ auth: "none" | "better-auth" | "clerk";
229
+ payments: "none" | "polar";
230
+ git: boolean;
231
+ packageManager: "bun" | "npm" | "pnpm";
232
+ install: boolean;
233
+ dbSetup: "none" | "turso" | "neon" | "prisma-postgres" | "planetscale" | "mongodb-atlas" | "supabase" | "d1" | "docker";
234
+ api: "none" | "trpc" | "orpc";
235
+ webDeploy: "none" | "alchemy";
236
+ serverDeploy: "none" | "alchemy";
237
+ };
409
238
  reproducibleCommand: string;
410
239
  timeScaffolded: string;
411
240
  elapsedTimeMs: number;
@@ -413,8 +242,8 @@ declare const router: {
413
242
  relativePath: string;
414
243
  error?: undefined;
415
244
  } | undefined>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
416
- add: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, z$1.ZodTuple<[z$1.ZodObject<{
417
- addons: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
245
+ add: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, z.ZodTuple<[z.ZodObject<{
246
+ addons: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
418
247
  none: "none";
419
248
  pwa: "pwa";
420
249
  tauri: "tauri";
@@ -427,22 +256,22 @@ declare const router: {
427
256
  ultracite: "ultracite";
428
257
  oxlint: "oxlint";
429
258
  }>>>>;
430
- webDeploy: z$1.ZodOptional<z$1.ZodEnum<{
259
+ webDeploy: z.ZodOptional<z.ZodEnum<{
431
260
  none: "none";
432
261
  alchemy: "alchemy";
433
262
  }>>;
434
- serverDeploy: z$1.ZodOptional<z$1.ZodEnum<{
263
+ serverDeploy: z.ZodOptional<z.ZodEnum<{
435
264
  none: "none";
436
265
  alchemy: "alchemy";
437
266
  }>>;
438
- projectDir: z$1.ZodOptional<z$1.ZodString>;
439
- install: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
440
- packageManager: z$1.ZodOptional<z$1.ZodEnum<{
267
+ projectDir: z.ZodOptional<z.ZodString>;
268
+ install: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
269
+ packageManager: z.ZodOptional<z.ZodEnum<{
270
+ bun: "bun";
441
271
  npm: "npm";
442
272
  pnpm: "pnpm";
443
- bun: "bun";
444
273
  }>>;
445
- }, z$1.core.$strip>], null>, _orpc_server0.Schema<void, void>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
274
+ }, z.core.$strip>], null>, _orpc_server0.Schema<void, void>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
446
275
  sponsors: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, _orpc_server0.Schema<unknown, unknown>, _orpc_server0.Schema<void, void>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
447
276
  docs: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, _orpc_server0.Schema<unknown, unknown>, _orpc_server0.Schema<void, void>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
448
277
  builder: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, _orpc_server0.Schema<unknown, unknown>, _orpc_server0.Schema<void, void>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
@@ -481,7 +310,36 @@ declare function createBtsCli(): trpc_cli0.TrpcCli;
481
310
  * }
482
311
  * ```
483
312
  */
484
- declare function init(projectName?: string, options?: CreateInput): Promise<InitResult>;
313
+ declare function init(projectName?: string, options?: CreateInput): Promise<{
314
+ success: boolean;
315
+ projectConfig: {
316
+ projectName: string;
317
+ projectDir: string;
318
+ relativePath: string;
319
+ database: "none" | "sqlite" | "postgres" | "mysql" | "mongodb";
320
+ orm: "none" | "drizzle" | "prisma" | "mongoose";
321
+ backend: "none" | "hono" | "express" | "fastify" | "elysia" | "convex" | "self";
322
+ runtime: "none" | "bun" | "node" | "workers";
323
+ frontend: ("none" | "tanstack-router" | "react-router" | "tanstack-start" | "next" | "nuxt" | "native-bare" | "native-uniwind" | "native-unistyles" | "svelte" | "solid")[];
324
+ addons: ("none" | "pwa" | "tauri" | "starlight" | "biome" | "husky" | "ruler" | "turborepo" | "fumadocs" | "ultracite" | "oxlint")[];
325
+ examples: ("none" | "todo" | "ai")[];
326
+ auth: "none" | "better-auth" | "clerk";
327
+ payments: "none" | "polar";
328
+ git: boolean;
329
+ packageManager: "bun" | "npm" | "pnpm";
330
+ install: boolean;
331
+ dbSetup: "none" | "turso" | "neon" | "prisma-postgres" | "planetscale" | "mongodb-atlas" | "supabase" | "d1" | "docker";
332
+ api: "none" | "trpc" | "orpc";
333
+ webDeploy: "none" | "alchemy";
334
+ serverDeploy: "none" | "alchemy";
335
+ };
336
+ reproducibleCommand: string;
337
+ timeScaffolded: string;
338
+ elapsedTimeMs: number;
339
+ projectDirectory: string;
340
+ relativePath: string;
341
+ error?: string | undefined;
342
+ }>;
485
343
  declare function sponsors(): Promise<void>;
486
344
  declare function docs(): Promise<void>;
487
345
  declare function builder(): Promise<void>;
package/dist/index.mjs ADDED
@@ -0,0 +1,4 @@
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-BDXa8gsB.mjs";
3
+
4
+ export { builder, createBtsCli, docs, init, router, sponsors };