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
@@ -1,23 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "compilerOptions": {
4
- "target": "ESNext",
5
- "module": "ESNext",
6
- "moduleResolution": "bundler",
7
- "lib": [
8
- "ESNext"
9
- ],
10
- "verbatimModuleSyntax": true,
11
- "strict": true,
12
- "skipLibCheck": true,
13
- "resolveJsonModule": true,
14
- "allowSyntheticDefaultImports": true,
15
- "esModuleInterop": true,
16
- "forceConsistentCasingInFileNames": true,
17
- "isolatedModules": true,
18
- "noUncheckedIndexedAccess": true,
19
- "noUnusedLocals": true,
20
- "noUnusedParameters": true,
21
- "noFallthroughCasesInSwitch": true
22
- }
23
- }
@@ -1,34 +0,0 @@
1
- # dependencies (bun install)
2
- node_modules
3
-
4
- # output
5
- out
6
- dist
7
- *.tgz
8
-
9
- # code coverage
10
- coverage
11
- *.lcov
12
-
13
- # logs
14
- logs
15
- _.log
16
- report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
17
-
18
- # dotenv environment variable files
19
- .env
20
- .env.development.local
21
- .env.test.local
22
- .env.production.local
23
- .env.local
24
-
25
- # caches
26
- .eslintcache
27
- .cache
28
- *.tsbuildinfo
29
-
30
- # IntelliJ based IDEs
31
- .idea
32
-
33
- # Finder (MacOS) folder config
34
- .DS_Store
@@ -1,23 +0,0 @@
1
- {
2
- "name": "@{{projectName}}/db",
3
- "type": "module",
4
- "exports": {
5
- ".": {
6
- "types": "./dist/index.d.ts",
7
- "default": "./src/index.ts"
8
- },
9
- "./*": {
10
- "types": "./dist/*.d.ts",
11
- "default": "./src/*.ts"
12
- }
13
- },
14
- "scripts": {
15
- "build": "tsdown"
16
- },
17
- "devDependencies": {
18
- "@types/node": "^24.5.2"
19
- },
20
- "peerDependencies": {
21
- "typescript": "^5"
22
- }
23
- }
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "declarationMap": true,
6
- "sourceMap": true,
7
- "outDir": "dist",
8
- "composite": true,
9
- "types": [
10
- "bun"
11
- ]
12
- }
13
- }
@@ -1,7 +0,0 @@
1
- import { defineConfig } from "tsdown";
2
-
3
- export default defineConfig({
4
- entry: 'src/**/*.ts',
5
- sourcemap: true,
6
- dts: true,
7
- });
@@ -1,5 +0,0 @@
1
- import { PrismaClient } from "../prisma/generated/client";
2
-
3
- const prisma = new PrismaClient();
4
-
5
- export default prisma;