create-better-t-stack 2.50.0-canary.dd7000f2 → 2.50.1

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 (92) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/index.d.ts +2 -2
  3. package/dist/index.js +1 -1
  4. package/dist/{src-dv6H37db.js → src-B8TD9m4n.js} +228 -518
  5. package/package.json +1 -2
  6. package/templates/api/orpc/server/{src → base/src/lib}/context.ts.hbs +6 -6
  7. package/templates/api/orpc/server/next/src/app/rpc/[...all]/route.ts.hbs +52 -0
  8. package/templates/api/orpc/web/nuxt/app/plugins/orpc.ts.hbs +1 -1
  9. package/templates/api/orpc/web/react/base/src/utils/orpc.ts.hbs +1 -1
  10. package/templates/api/orpc/web/solid/src/utils/orpc.ts.hbs +1 -1
  11. package/templates/api/orpc/web/svelte/src/lib/orpc.ts.hbs +1 -1
  12. package/templates/api/trpc/server/{src → base/src/lib}/context.ts.hbs +6 -6
  13. package/templates/api/trpc/server/next/src/app/trpc/[trpc]/route.ts +14 -0
  14. package/templates/api/trpc/web/react/base/src/utils/trpc.ts.hbs +2 -2
  15. package/templates/auth/better-auth/server/base/src/{index.ts.hbs → lib/auth.ts.hbs} +7 -7
  16. package/templates/auth/better-auth/server/next/src/app/api/auth/[...all]/route.ts +4 -0
  17. package/templates/backend/server/elysia/src/index.ts.hbs +6 -6
  18. package/templates/backend/server/express/src/index.ts.hbs +6 -6
  19. package/templates/backend/server/fastify/src/index.ts.hbs +6 -6
  20. package/templates/backend/server/hono/src/index.ts.hbs +7 -7
  21. package/templates/backend/server/next/next-env.d.ts +5 -0
  22. package/templates/backend/server/next/next.config.ts +7 -0
  23. package/templates/backend/server/next/package.json.hbs +27 -0
  24. package/templates/backend/server/next/src/app/route.ts +5 -0
  25. package/templates/backend/server/next/src/middleware.ts +19 -0
  26. package/templates/backend/server/next/tsconfig.json.hbs +33 -0
  27. package/templates/backend/server/{base → server-base}/package.json.hbs +1 -0
  28. package/templates/{api/trpc/server → backend/server/server-base}/src/routers/index.ts.hbs +2 -2
  29. package/templates/backend/server/{base → server-base}/tsconfig.json.hbs +10 -5
  30. package/templates/base/_gitignore +1 -47
  31. package/templates/base/package.json.hbs +3 -1
  32. package/templates/db/drizzle/mysql/drizzle.config.ts.hbs +2 -7
  33. package/templates/db/drizzle/mysql/src/{index.ts.hbs → db/index.ts.hbs} +1 -1
  34. package/templates/db/drizzle/postgres/drizzle.config.ts.hbs +2 -7
  35. package/templates/db/drizzle/postgres/src/{index.ts.hbs → db/index.ts.hbs} +1 -1
  36. package/templates/db/drizzle/sqlite/drizzle.config.ts.hbs +2 -7
  37. package/templates/db/drizzle/sqlite/src/{index.ts.hbs → db/index.ts.hbs} +1 -1
  38. package/templates/db/prisma/mongodb/prisma.config.ts.hbs +1 -5
  39. package/templates/db/prisma/mongodb/src/db/index.ts.hbs +5 -0
  40. package/templates/db/prisma/mysql/prisma.config.ts.hbs +1 -5
  41. package/templates/db/prisma/mysql/src/{index.ts.hbs → db/index.ts.hbs} +1 -1
  42. package/templates/db/prisma/postgres/prisma.config.ts.hbs +3 -7
  43. package/templates/db/prisma/postgres/src/{index.ts.hbs → db/index.ts.hbs} +1 -1
  44. package/templates/db/prisma/sqlite/prisma.config.ts.hbs +1 -5
  45. package/templates/db/prisma/sqlite/src/{index.ts.hbs → db/index.ts.hbs} +3 -3
  46. package/templates/examples/ai/server/next/src/app/ai/route.ts.hbs +15 -0
  47. package/templates/examples/todo/server/drizzle/base/src/routers/todo.ts.hbs +6 -6
  48. package/templates/examples/todo/server/mongoose/base/src/routers/todo.ts.hbs +4 -4
  49. package/templates/examples/todo/server/prisma/base/src/routers/todo.ts.hbs +4 -4
  50. package/templates/frontend/react/tanstack-router/src/routes/__root.tsx.hbs +1 -1
  51. package/templates/frontend/react/tanstack-start/src/routes/__root.tsx.hbs +1 -1
  52. package/templates/api/orpc/server/_gitignore +0 -34
  53. package/templates/api/orpc/server/package.json.hbs +0 -24
  54. package/templates/api/orpc/server/src/routers/index.ts.hbs +0 -55
  55. package/templates/api/orpc/server/tsconfig.json.hbs +0 -10
  56. package/templates/api/orpc/server/tsdown.config.ts.hbs +0 -7
  57. package/templates/api/trpc/server/_gitignore +0 -34
  58. package/templates/api/trpc/server/package.json.hbs +0 -23
  59. package/templates/api/trpc/server/tsconfig.json.hbs +0 -13
  60. package/templates/api/trpc/server/tsdown.config.ts.hbs +0 -7
  61. package/templates/auth/better-auth/server/base/_gitignore +0 -34
  62. package/templates/auth/better-auth/server/base/package.json.hbs +0 -24
  63. package/templates/auth/better-auth/server/base/tsconfig.json.hbs +0 -13
  64. package/templates/auth/better-auth/server/base/tsdown.config.ts.hbs +0 -7
  65. package/templates/backend/server/base/tsdown.config.ts.hbs +0 -14
  66. package/templates/base/tsconfig.base.json +0 -23
  67. package/templates/db/base/_gitignore +0 -34
  68. package/templates/db/base/package.json.hbs +0 -23
  69. package/templates/db/base/tsconfig.json.hbs +0 -13
  70. package/templates/db/base/tsdown.config.ts.hbs +0 -7
  71. package/templates/db/prisma/mongodb/src/index.ts.hbs +0 -5
  72. /package/templates/api/orpc/server/{src/index.ts.hbs → base/src/lib/orpc.ts.hbs} +0 -0
  73. /package/templates/api/trpc/server/{src/index.ts.hbs → base/src/lib/trpc.ts.hbs} +0 -0
  74. /package/templates/auth/better-auth/server/db/drizzle/mysql/src/{schema/auth.ts.hbs → db/schema/auth.ts} +0 -0
  75. /package/templates/auth/better-auth/server/db/drizzle/postgres/src/{schema/auth.ts.hbs → db/schema/auth.ts} +0 -0
  76. /package/templates/auth/better-auth/server/db/drizzle/sqlite/src/{schema/auth.ts.hbs → db/schema/auth.ts} +0 -0
  77. /package/templates/auth/better-auth/server/db/mongoose/mongodb/src/{models/auth.model.ts.hbs → db/models/auth.model.ts} +0 -0
  78. /package/templates/auth/better-auth/server/db/prisma/mongodb/prisma/schema/{auth.prisma.hbs → auth.prisma} +0 -0
  79. /package/templates/auth/better-auth/server/db/prisma/mysql/prisma/schema/{auth.prisma.hbs → auth.prisma} +0 -0
  80. /package/templates/auth/better-auth/server/db/prisma/postgres/prisma/schema/{auth.prisma.hbs → auth.prisma} +0 -0
  81. /package/templates/auth/better-auth/server/db/prisma/sqlite/prisma/schema/{auth.prisma.hbs → auth.prisma} +0 -0
  82. /package/templates/auth/better-auth/web/nuxt/app/middleware/{auth.ts.hbs → auth.ts} +0 -0
  83. /package/templates/backend/server/{base → server-base}/_gitignore +0 -0
  84. /package/templates/db/mongoose/mongodb/src/{index.ts.hbs → db/index.ts.hbs} +0 -0
  85. /package/templates/examples/todo/server/drizzle/mysql/src/{schema → db/schema}/todo.ts +0 -0
  86. /package/templates/examples/todo/server/drizzle/postgres/src/{schema → db/schema}/todo.ts +0 -0
  87. /package/templates/examples/todo/server/drizzle/sqlite/src/{schema → db/schema}/todo.ts +0 -0
  88. /package/templates/examples/todo/server/mongoose/mongodb/src/{models/todo.model.ts.hbs → db/models/todo.model.ts} +0 -0
  89. /package/templates/examples/todo/server/prisma/mongodb/prisma/schema/{todo.prisma.hbs → todo.prisma} +0 -0
  90. /package/templates/examples/todo/server/prisma/mysql/prisma/schema/{todo.prisma.hbs → todo.prisma} +0 -0
  91. /package/templates/examples/todo/server/prisma/postgres/prisma/schema/{todo.prisma.hbs → todo.prisma} +0 -0
  92. /package/templates/examples/todo/server/prisma/sqlite/prisma/schema/{todo.prisma.hbs → todo.prisma} +0 -0
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { createBtsCli } from "./src-dv6H37db.js";
2
+ import { createBtsCli } from "./src-B8TD9m4n.js";
3
3
 
4
4
  //#region src/cli.ts
5
5
  createBtsCli().run();
package/dist/index.d.ts CHANGED
@@ -22,12 +22,12 @@ declare const ORMSchema: z.ZodEnum<{
22
22
  type ORM = z.infer<typeof ORMSchema>;
23
23
  declare const BackendSchema: z.ZodEnum<{
24
24
  none: "none";
25
+ next: "next";
25
26
  hono: "hono";
26
27
  express: "express";
27
28
  fastify: "fastify";
28
29
  elysia: "elysia";
29
30
  convex: "convex";
30
- self: "self";
31
31
  }>;
32
32
  type Backend = z.infer<typeof BackendSchema>;
33
33
  declare const RuntimeSchema: z.ZodEnum<{
@@ -286,12 +286,12 @@ declare const router: {
286
286
  }>>;
287
287
  backend: z$1.ZodOptional<z$1.ZodEnum<{
288
288
  none: "none";
289
+ next: "next";
289
290
  hono: "hono";
290
291
  express: "express";
291
292
  fastify: "fastify";
292
293
  elysia: "elysia";
293
294
  convex: "convex";
294
- self: "self";
295
295
  }>>;
296
296
  runtime: z$1.ZodOptional<z$1.ZodEnum<{
297
297
  none: "none";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { builder, createBtsCli, docs, init, router, sponsors } from "./src-dv6H37db.js";
2
+ import { builder, createBtsCli, docs, init, router, sponsors } from "./src-B8TD9m4n.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };