create-better-t-stack 3.7.2 → 3.7.3-canary.1bf365d5

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/index.d.ts DELETED
@@ -1,489 +0,0 @@
1
- #!/usr/bin/env node
2
- import * as _orpc_server0 from "@orpc/server";
3
- import * as trpc_cli0 from "trpc-cli";
4
- import z$1, { z } from "zod";
5
-
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
- //#region src/index.d.ts
219
- 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<{
222
- mern: "mern";
223
- pern: "pern";
224
- t3: "t3";
225
- uniwind: "uniwind";
226
- none: "none";
227
- }>>;
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<{
232
- none: "none";
233
- sqlite: "sqlite";
234
- postgres: "postgres";
235
- mysql: "mysql";
236
- mongodb: "mongodb";
237
- }>>;
238
- orm: z$1.ZodOptional<z$1.ZodEnum<{
239
- none: "none";
240
- drizzle: "drizzle";
241
- prisma: "prisma";
242
- mongoose: "mongoose";
243
- }>>;
244
- auth: z$1.ZodOptional<z$1.ZodEnum<{
245
- none: "none";
246
- "better-auth": "better-auth";
247
- clerk: "clerk";
248
- }>>;
249
- payments: z$1.ZodOptional<z$1.ZodEnum<{
250
- none: "none";
251
- polar: "polar";
252
- }>>;
253
- frontend: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
254
- none: "none";
255
- "tanstack-router": "tanstack-router";
256
- "react-router": "react-router";
257
- "tanstack-start": "tanstack-start";
258
- next: "next";
259
- nuxt: "nuxt";
260
- "native-bare": "native-bare";
261
- "native-uniwind": "native-uniwind";
262
- "native-unistyles": "native-unistyles";
263
- svelte: "svelte";
264
- solid: "solid";
265
- }>>>;
266
- addons: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
267
- none: "none";
268
- pwa: "pwa";
269
- tauri: "tauri";
270
- starlight: "starlight";
271
- biome: "biome";
272
- husky: "husky";
273
- ruler: "ruler";
274
- turborepo: "turborepo";
275
- fumadocs: "fumadocs";
276
- ultracite: "ultracite";
277
- oxlint: "oxlint";
278
- }>>>;
279
- examples: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
280
- none: "none";
281
- todo: "todo";
282
- ai: "ai";
283
- }>>>;
284
- git: z$1.ZodOptional<z$1.ZodBoolean>;
285
- packageManager: z$1.ZodOptional<z$1.ZodEnum<{
286
- npm: "npm";
287
- pnpm: "pnpm";
288
- bun: "bun";
289
- }>>;
290
- install: z$1.ZodOptional<z$1.ZodBoolean>;
291
- dbSetup: z$1.ZodOptional<z$1.ZodEnum<{
292
- none: "none";
293
- turso: "turso";
294
- neon: "neon";
295
- "prisma-postgres": "prisma-postgres";
296
- planetscale: "planetscale";
297
- "mongodb-atlas": "mongodb-atlas";
298
- supabase: "supabase";
299
- d1: "d1";
300
- docker: "docker";
301
- }>>;
302
- backend: z$1.ZodOptional<z$1.ZodEnum<{
303
- none: "none";
304
- hono: "hono";
305
- express: "express";
306
- fastify: "fastify";
307
- elysia: "elysia";
308
- convex: "convex";
309
- self: "self";
310
- }>>;
311
- runtime: z$1.ZodOptional<z$1.ZodEnum<{
312
- none: "none";
313
- bun: "bun";
314
- node: "node";
315
- workers: "workers";
316
- }>>;
317
- api: z$1.ZodOptional<z$1.ZodEnum<{
318
- none: "none";
319
- trpc: "trpc";
320
- orpc: "orpc";
321
- }>>;
322
- webDeploy: z$1.ZodOptional<z$1.ZodEnum<{
323
- none: "none";
324
- alchemy: "alchemy";
325
- }>>;
326
- serverDeploy: z$1.ZodOptional<z$1.ZodEnum<{
327
- none: "none";
328
- alchemy: "alchemy";
329
- }>>;
330
- directoryConflict: z$1.ZodOptional<z$1.ZodEnum<{
331
- error: "error";
332
- merge: "merge";
333
- overwrite: "overwrite";
334
- increment: "increment";
335
- }>>;
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<{
340
- success: boolean;
341
- projectConfig: {
342
- projectName: string;
343
- projectDir: string;
344
- relativePath: string;
345
- database: "none";
346
- orm: "none";
347
- backend: "none";
348
- runtime: "none";
349
- frontend: never[];
350
- addons: never[];
351
- examples: never[];
352
- auth: "none";
353
- payments: "none";
354
- git: false;
355
- packageManager: "npm";
356
- install: false;
357
- dbSetup: "none";
358
- api: "none";
359
- webDeploy: "none";
360
- serverDeploy: "none";
361
- };
362
- reproducibleCommand: string;
363
- timeScaffolded: string;
364
- elapsedTimeMs: number;
365
- projectDirectory: string;
366
- relativePath: string;
367
- error: string;
368
- } | {
369
- success: boolean;
370
- projectConfig: ProjectConfig;
371
- reproducibleCommand: string;
372
- timeScaffolded: string;
373
- elapsedTimeMs: number;
374
- projectDirectory: string;
375
- relativePath: string;
376
- error?: undefined;
377
- } | undefined, {
378
- success: boolean;
379
- projectConfig: {
380
- projectName: string;
381
- projectDir: string;
382
- relativePath: string;
383
- database: "none";
384
- orm: "none";
385
- backend: "none";
386
- runtime: "none";
387
- frontend: never[];
388
- addons: never[];
389
- examples: never[];
390
- auth: "none";
391
- payments: "none";
392
- git: false;
393
- packageManager: "npm";
394
- install: false;
395
- dbSetup: "none";
396
- api: "none";
397
- webDeploy: "none";
398
- serverDeploy: "none";
399
- };
400
- reproducibleCommand: string;
401
- timeScaffolded: string;
402
- elapsedTimeMs: number;
403
- projectDirectory: string;
404
- relativePath: string;
405
- error: string;
406
- } | {
407
- success: boolean;
408
- projectConfig: ProjectConfig;
409
- reproducibleCommand: string;
410
- timeScaffolded: string;
411
- elapsedTimeMs: number;
412
- projectDirectory: string;
413
- relativePath: string;
414
- error?: undefined;
415
- } | 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<{
418
- none: "none";
419
- pwa: "pwa";
420
- tauri: "tauri";
421
- starlight: "starlight";
422
- biome: "biome";
423
- husky: "husky";
424
- ruler: "ruler";
425
- turborepo: "turborepo";
426
- fumadocs: "fumadocs";
427
- ultracite: "ultracite";
428
- oxlint: "oxlint";
429
- }>>>>;
430
- webDeploy: z$1.ZodOptional<z$1.ZodEnum<{
431
- none: "none";
432
- alchemy: "alchemy";
433
- }>>;
434
- serverDeploy: z$1.ZodOptional<z$1.ZodEnum<{
435
- none: "none";
436
- alchemy: "alchemy";
437
- }>>;
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<{
441
- npm: "npm";
442
- pnpm: "pnpm";
443
- bun: "bun";
444
- }>>;
445
- }, z$1.core.$strip>], null>, _orpc_server0.Schema<void, void>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
446
- 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
- 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
- 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>>;
449
- };
450
- declare function createBtsCli(): trpc_cli0.TrpcCli;
451
- /**
452
- * Initialize a new Better-T-Stack project
453
- *
454
- * @example CLI usage:
455
- * ```bash
456
- * npx create-better-t-stack my-app --yes
457
- * ```
458
- *
459
- * @example Programmatic usage (always returns structured data):
460
- * ```typescript
461
- * import { init } from "create-better-t-stack";
462
- *
463
- * const result = await init("my-app", {
464
- * yes: true,
465
- * frontend: ["tanstack-router"],
466
- * backend: "hono",
467
- * database: "sqlite",
468
- * orm: "drizzle",
469
- * auth: "better-auth",
470
- * addons: ["biome", "turborepo"],
471
- * packageManager: "bun",
472
- * install: false,
473
- * directoryConflict: "increment", // auto-handle conflicts
474
- * disableAnalytics: true, // disable analytics
475
- * });
476
- *
477
- * if (result.success) {
478
- * console.log(`Project created at: ${result.projectDirectory}`);
479
- * console.log(`Reproducible command: ${result.reproducibleCommand}`);
480
- * console.log(`Time taken: ${result.elapsedTimeMs}ms`);
481
- * }
482
- * ```
483
- */
484
- declare function init(projectName?: string, options?: CreateInput): Promise<InitResult>;
485
- declare function sponsors(): Promise<void>;
486
- declare function docs(): Promise<void>;
487
- declare function builder(): Promise<void>;
488
- //#endregion
489
- export { type API, type AddInput, type Addons, type Backend, type BetterTStackConfig, type CreateInput, type Database, type DatabaseSetup, type DirectoryConflict, type Examples, type Frontend, type InitResult, type ORM, type PackageManager, type ProjectConfig, type Runtime, type ServerDeploy, type Template, type WebDeploy, builder, createBtsCli, docs, init, router, sponsors };
package/dist/index.js DELETED
@@ -1,4 +0,0 @@
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-BNPik1LZ.js";
3
-
4
- export { builder, createBtsCli, docs, init, router, sponsors };