create-better-t-stack 2.49.1-canary.80158905 → 2.50.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 (77) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/{src-CyG8-I-3.js → src-BFx0Xu3C.js} +171 -357
  4. package/package.json +1 -1
  5. package/templates/api/orpc/server/{rest/src → base/src/lib}/context.ts.hbs +5 -5
  6. package/templates/api/orpc/web/nuxt/app/plugins/orpc.ts.hbs +1 -1
  7. package/templates/api/orpc/web/react/base/src/utils/orpc.ts.hbs +1 -1
  8. package/templates/api/orpc/web/solid/src/utils/orpc.ts.hbs +1 -1
  9. package/templates/api/orpc/web/svelte/src/lib/orpc.ts.hbs +1 -1
  10. package/templates/api/trpc/server/{rest/src → base/src/lib}/context.ts.hbs +5 -5
  11. package/templates/api/trpc/web/react/base/src/utils/trpc.ts.hbs +2 -2
  12. package/templates/auth/better-auth/server/base/src/{index.ts.hbs → lib/auth.ts.hbs} +6 -6
  13. package/templates/auth/clerk/convex/web/react/tanstack-start/src/server.ts.hbs +1 -0
  14. package/templates/backend/server/elysia/src/index.ts.hbs +5 -5
  15. package/templates/backend/server/express/src/index.ts.hbs +5 -5
  16. package/templates/backend/server/fastify/src/index.ts.hbs +5 -5
  17. package/templates/backend/server/hono/src/index.ts.hbs +5 -5
  18. package/templates/backend/server/{base → server-base}/package.json.hbs +1 -0
  19. package/templates/{api/trpc/server/base → backend/server/server-base}/src/routers/index.ts.hbs +2 -2
  20. package/templates/backend/server/{base → server-base}/tsconfig.json.hbs +10 -5
  21. package/templates/base/_gitignore +1 -47
  22. package/templates/base/package.json.hbs +3 -1
  23. package/templates/db/drizzle/mysql/drizzle.config.ts.hbs +2 -7
  24. package/templates/db/drizzle/postgres/drizzle.config.ts.hbs +2 -7
  25. package/templates/db/drizzle/sqlite/drizzle.config.ts.hbs +2 -7
  26. package/templates/db/prisma/mongodb/prisma.config.ts.hbs +1 -5
  27. package/templates/db/prisma/mongodb/src/db/index.ts.hbs +5 -0
  28. package/templates/db/prisma/mysql/prisma.config.ts.hbs +1 -5
  29. package/templates/db/prisma/mysql/src/{index.ts.hbs → db/index.ts.hbs} +1 -1
  30. package/templates/db/prisma/postgres/prisma.config.ts.hbs +3 -7
  31. package/templates/db/prisma/postgres/src/{index.ts.hbs → db/index.ts.hbs} +1 -1
  32. package/templates/db/prisma/sqlite/prisma.config.ts.hbs +1 -5
  33. package/templates/db/prisma/sqlite/src/{index.ts.hbs → db/index.ts.hbs} +3 -3
  34. package/templates/deploy/wrangler/web/react/tanstack-start/wrangler.jsonc.hbs +1 -1
  35. package/templates/examples/todo/server/drizzle/base/src/routers/todo.ts.hbs +6 -6
  36. package/templates/examples/todo/server/mongoose/base/src/routers/todo.ts.hbs +4 -4
  37. package/templates/examples/todo/server/prisma/base/src/routers/todo.ts.hbs +4 -4
  38. package/templates/frontend/react/tanstack-router/src/routes/__root.tsx.hbs +1 -1
  39. package/templates/frontend/react/tanstack-start/package.json.hbs +7 -7
  40. package/templates/frontend/react/tanstack-start/src/routes/__root.tsx.hbs +5 -5
  41. package/templates/frontend/react/tanstack-start/vite.config.ts.hbs +1 -1
  42. package/templates/api/orpc/server/base/_gitignore +0 -34
  43. package/templates/api/orpc/server/base/package.json.hbs +0 -24
  44. package/templates/api/orpc/server/base/src/routers/index.ts.hbs +0 -55
  45. package/templates/api/orpc/server/base/tsconfig.json.hbs +0 -10
  46. package/templates/api/orpc/server/base/tsdown.config.ts.hbs +0 -7
  47. package/templates/api/trpc/server/base/_gitignore +0 -34
  48. package/templates/api/trpc/server/base/package.json.hbs +0 -23
  49. package/templates/api/trpc/server/base/tsconfig.json.hbs +0 -13
  50. package/templates/api/trpc/server/base/tsdown.config.ts.hbs +0 -7
  51. package/templates/auth/better-auth/server/base/_gitignore +0 -34
  52. package/templates/auth/better-auth/server/base/package.json.hbs +0 -24
  53. package/templates/auth/better-auth/server/base/tsconfig.json.hbs +0 -13
  54. package/templates/auth/better-auth/server/base/tsdown.config.ts.hbs +0 -7
  55. package/templates/backend/server/base/tsdown.config.ts.hbs +0 -14
  56. package/templates/base/tsconfig.base.json +0 -23
  57. package/templates/db/base/_gitignore +0 -34
  58. package/templates/db/base/package.json.hbs +0 -23
  59. package/templates/db/base/tsconfig.json.hbs +0 -13
  60. package/templates/db/base/tsdown.config.ts.hbs +0 -7
  61. package/templates/db/prisma/mongodb/src/index.ts.hbs +0 -5
  62. /package/templates/api/orpc/server/{rest/src/index.ts.hbs → base/src/lib/orpc.ts.hbs} +0 -0
  63. /package/templates/api/trpc/server/{rest/src/index.ts.hbs → base/src/lib/trpc.ts.hbs} +0 -0
  64. /package/templates/auth/better-auth/server/db/drizzle/mysql/src/{schema → db/schema}/auth.ts +0 -0
  65. /package/templates/auth/better-auth/server/db/drizzle/postgres/src/{schema → db/schema}/auth.ts +0 -0
  66. /package/templates/auth/better-auth/server/db/drizzle/sqlite/src/{schema → db/schema}/auth.ts +0 -0
  67. /package/templates/auth/better-auth/server/db/mongoose/mongodb/src/{models → db/models}/auth.model.ts +0 -0
  68. /package/templates/backend/server/{base → server-base}/_gitignore +0 -0
  69. /package/templates/db/drizzle/mysql/src/{index.ts.hbs → db/index.ts.hbs} +0 -0
  70. /package/templates/db/drizzle/postgres/src/{index.ts.hbs → db/index.ts.hbs} +0 -0
  71. /package/templates/db/drizzle/sqlite/src/{index.ts.hbs → db/index.ts.hbs} +0 -0
  72. /package/templates/db/mongoose/mongodb/src/{index.ts.hbs → db/index.ts.hbs} +0 -0
  73. /package/templates/examples/todo/server/mongoose/mongodb/src/db/models/{todo.model.ts.hbs → todo.model.ts} +0 -0
  74. /package/templates/examples/todo/server/prisma/mongodb/prisma/schema/{todo.prisma.hbs → todo.prisma} +0 -0
  75. /package/templates/examples/todo/server/prisma/mysql/prisma/schema/{todo.prisma.hbs → todo.prisma} +0 -0
  76. /package/templates/examples/todo/server/prisma/postgres/prisma/schema/{todo.prisma.hbs → todo.prisma} +0 -0
  77. /package/templates/examples/todo/server/prisma/sqlite/prisma/schema/{todo.prisma.hbs → todo.prisma} +0 -0
@@ -1,7 +1,7 @@
1
1
  {{#if (eq api "orpc")}}
2
2
  import z from "zod";
3
- import { publicProcedure } from "../index";
4
- import { Todo } from "@{{projectName}}/db/models/todo.model";
3
+ import { publicProcedure } from "../lib/orpc";
4
+ import { Todo } from "../db/models/todo.model";
5
5
 
6
6
  export const todoRouter = {
7
7
  getAll: publicProcedure.handler(async () => {
@@ -34,8 +34,8 @@ export const todoRouter = {
34
34
 
35
35
  {{#if (eq api "trpc")}}
36
36
  import z from "zod";
37
- import { router, publicProcedure } from "../index";
38
- import { Todo } from "@{{projectName}}/db/models/todo.model";
37
+ import { router, publicProcedure } from "../lib/trpc";
38
+ import { Todo } from "../db/models/todo.model";
39
39
 
40
40
  export const todoRouter = router({
41
41
  getAll: publicProcedure.query(async () => {
@@ -1,7 +1,7 @@
1
1
  {{#if (eq api "orpc")}}
2
2
  import z from "zod";
3
- import prisma from "@{{projectName}}/db";
4
- import { publicProcedure } from "../index";
3
+ import prisma from "../db";
4
+ import { publicProcedure } from "../lib/orpc";
5
5
 
6
6
  export const todoRouter = {
7
7
  getAll: publicProcedure.handler(async () => {
@@ -52,8 +52,8 @@ export const todoRouter = {
52
52
  {{#if (eq api "trpc")}}
53
53
  import { TRPCError } from "@trpc/server";
54
54
  import z from "zod";
55
- import prisma from "@{{projectName}}/db";
56
- import { publicProcedure, router } from "../index";
55
+ import prisma from "../db";
56
+ import { publicProcedure, router } from "../lib/trpc";
57
57
 
58
58
  export const todoRouter = router({
59
59
  getAll: publicProcedure.query(async () => {
@@ -8,7 +8,7 @@ import type { QueryClient } from "@tanstack/react-query";
8
8
  import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
9
9
  import { useState } from "react";
10
10
  import { createTanstackQueryUtils } from "@orpc/tanstack-query";
11
- import type { AppRouterClient } from "@{{projectName}}/api/src/routers/index";
11
+ import type { AppRouterClient } from "../../../server/src/routers";
12
12
  import { createORPCClient } from "@orpc/client";
13
13
  {{/if}}
14
14
  {{#if (eq api "trpc")}}
@@ -9,13 +9,13 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "radix-ui": "^1.4.2",
12
- "@tanstack/react-form": "^1.0.5",
12
+ "@tanstack/react-form": "^1.23.5",
13
13
  "@tailwindcss/vite": "^4.1.8",
14
14
  "@tanstack/react-query": "^5.80.6",
15
- "@tanstack/react-router": "^1.121.0-alpha.27",
16
- "@tanstack/react-router-with-query": "^1.121.0",
17
- "@tanstack/react-start": "^1.121.0-alpha.27",
18
- "@tanstack/router-plugin": "^1.121.0",
15
+ "@tanstack/react-router": "^1.132.31",
16
+ "@tanstack/react-router-with-query": "^1.130.17",
17
+ "@tanstack/react-start": "^1.132.31",
18
+ "@tanstack/router-plugin": "^1.132.31",
19
19
  "class-variance-authority": "^0.7.1",
20
20
  "clsx": "^2.1.1",
21
21
  "lucide-react": "^0.525.0",
@@ -30,12 +30,12 @@
30
30
  "zod": "^4.0.2"
31
31
  },
32
32
  "devDependencies": {
33
- "@tanstack/react-router-devtools": "^1.121.0-alpha.27",
33
+ "@tanstack/react-router-devtools": "^1.132.31",
34
34
  "@testing-library/dom": "^10.4.0",
35
35
  "@testing-library/react": "^16.2.0",
36
36
  "@types/react": "~19.1.10",
37
37
  "@types/react-dom": "^19.0.4",
38
- "@vitejs/plugin-react": "^5.0.1",
38
+ "@vitejs/plugin-react": "^5.0.4",
39
39
  "jsdom": "^26.0.0",
40
40
  "typescript": "^5.7.2",
41
41
  "vite": "^7.0.2",
@@ -30,24 +30,24 @@ import Loader from "@/components/loader";
30
30
  import { ClerkProvider, useAuth } from "@clerk/tanstack-react-start";
31
31
  import { getAuth } from "@clerk/tanstack-react-start/server";
32
32
  import { createServerFn } from "@tanstack/react-start";
33
- import { getWebRequest } from "@tanstack/react-start/server";
33
+ import { getRequest } from "@tanstack/react-start/server";
34
34
  import { ConvexProviderWithClerk } from "convex/react-clerk";
35
35
 
36
36
  const fetchClerkAuth = createServerFn({ method: "GET" }).handler(async () => {
37
- const auth = await getAuth(getWebRequest());
37
+ const auth = await getAuth(getRequest());
38
38
  const token = await auth.getToken({ template: "convex" });
39
39
  return { userId: auth.userId, token };
40
40
  });
41
41
  {{else if (and (eq backend "convex") (eq auth "better-auth"))}}
42
42
  import { createServerFn } from "@tanstack/react-start";
43
- import { getWebRequest, getCookie } from "@tanstack/react-start/server";
43
+ import { getRequest, getCookie } from "@tanstack/react-start/server";
44
44
  import { ConvexBetterAuthProvider } from "@convex-dev/better-auth/react";
45
45
  import { fetchSession, getCookieName } from "@convex-dev/better-auth/react-start";
46
46
  import { authClient } from "@/lib/auth-client";
47
47
  import { createAuth } from "@{{projectName}}/backend/convex/auth";
48
48
 
49
49
  const fetchAuth = createServerFn({ method: "GET" }).handler(async () => {
50
- const { session } = await fetchSession(getWebRequest());
50
+ const { session } = await fetchSession(getRequest());
51
51
  const sessionCookieName = getCookieName(createAuth);
52
52
  const token = getCookie(sessionCookieName);
53
53
  return {
@@ -66,7 +66,7 @@ export interface RouterAppContext {
66
66
  {{else}}
67
67
  {{#if (eq api "trpc")}}
68
68
  import type { TRPCOptionsProxy } from "@trpc/tanstack-react-query";
69
- import type { AppRouter } from "@{{projectName}}/api/src/routers/index";
69
+ import type { AppRouter } from "../../../server/src/routers";
70
70
  export interface RouterAppContext {
71
71
  trpc: TRPCOptionsProxy<AppRouter>;
72
72
  queryClient: QueryClient;
@@ -8,7 +8,7 @@ export default defineConfig({
8
8
  plugins: [
9
9
  tsconfigPaths(),
10
10
  tailwindcss(),
11
- tanstackStart({ customViteReactPlugin: true }),
11
+ tanstackStart(),
12
12
  viteReact(),
13
13
  ],
14
14
  });
@@ -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,24 +0,0 @@
1
- {
2
- "name": "@{{projectName}}/api",
3
- "exports": {
4
- ".": {
5
- "types": "./dist/index.d.ts",
6
- "default": "./src/index.ts"
7
- },
8
- "./*": {
9
- "types": "./dist/*.d.ts",
10
- "default": "./src/*.ts"
11
- }
12
- },
13
- "type": "module",
14
- "scripts": {
15
- "build": "tsdown"
16
- },
17
- "devDependencies": {
18
- "@types/bun": "latest"
19
- },
20
- "peerDependencies": {
21
- "typescript": "^5"
22
- },
23
- "dependencies": {}
24
- }
@@ -1,55 +0,0 @@
1
- {{#if (eq api "orpc")}}
2
- import { {{#if (eq auth "better-auth")}}protectedProcedure, {{/if}}publicProcedure } from "../index";
3
- import type { RouterClient } from "@orpc/server";
4
- {{#if (includes examples "todo")}}
5
- import { todoRouter } from "./todo";
6
- {{/if}}
7
-
8
- export const appRouter = {
9
- healthCheck: publicProcedure.handler(() => {
10
- return "OK";
11
- }),
12
- {{#if (eq auth "better-auth")}}
13
- privateData: protectedProcedure.handler(({ context }) => {
14
- return {
15
- message: "This is private",
16
- user: context.session?.user,
17
- };
18
- }),
19
- {{/if}}
20
- {{#if (includes examples "todo")}}
21
- todo: todoRouter,
22
- {{/if}}
23
- };
24
- export type AppRouter = typeof appRouter;
25
- export type AppRouterClient = RouterClient<typeof appRouter>;
26
- {{else if (eq api "trpc")}}
27
- import {
28
- {{#if (eq auth "better-auth")}}protectedProcedure, {{/if}}publicProcedure,
29
- router,
30
- } from "../index";
31
- {{#if (includes examples "todo")}}
32
- import { todoRouter } from "./todo";
33
- {{/if}}
34
-
35
- export const appRouter = router({
36
- healthCheck: publicProcedure.query(() => {
37
- return "OK";
38
- }),
39
- {{#if (eq auth "better-auth")}}
40
- privateData: protectedProcedure.query(({ ctx }) => {
41
- return {
42
- message: "This is private",
43
- user: ctx.session.user,
44
- };
45
- }),
46
- {{/if}}
47
- {{#if (includes examples "todo")}}
48
- todo: todoRouter,
49
- {{/if}}
50
- });
51
- export type AppRouter = typeof appRouter;
52
- {{else}}
53
- export const appRouter = {};
54
- export type AppRouter = typeof appRouter;
55
- {{/if}}
@@ -1,10 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ESNext",
4
- "module": "ESNext",
5
- "moduleResolution": "bundler",
6
- "types": [
7
- "bun"
8
- ],
9
- }
10
- }
@@ -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,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}}/api",
3
- "exports": {
4
- ".": {
5
- "types": "./dist/index.d.ts",
6
- "default": "./src/index.ts"
7
- },
8
- "./*": {
9
- "types": "./dist/*.d.ts",
10
- "default": "./src/*.ts"
11
- }
12
- },
13
- "type": "module",
14
- "scripts": {
15
- "build": "tsdown"
16
- },
17
- "devDependencies": {
18
- "@types/bun": "latest"
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,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,24 +0,0 @@
1
- {
2
- "name": "@{{projectName}}/auth",
3
- "exports": {
4
- ".": {
5
- "types": "./dist/index.d.ts",
6
- "default": "./src/index.ts"
7
- },
8
- "./*": {
9
- "types": "./dist/*.d.ts",
10
- "default": "./src/*.ts"
11
- }
12
- },
13
- "type": "module",
14
- "scripts": {
15
- "build": "tsdown"
16
- },
17
- "devDependencies": {
18
- "@types/bun": "latest",
19
- "@types/node": "^24.5.2"
20
- },
21
- "peerDependencies": {
22
- "typescript": "^5"
23
- }
24
- }
@@ -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,14 +0,0 @@
1
- import { defineConfig } from 'tsdown';
2
-
3
- export default defineConfig({
4
- entry: './src/index.ts',
5
- format: 'esm',
6
- outDir: './dist',
7
- clean: true,
8
- noExternal: [/@{{projectName}}\/.*/],
9
- {{#if (and (eq orm "drizzle") (eq database "sqlite") (or (eq dbSetup "turso") (eq dbSetup "none")))}}
10
- external: [
11
- /^@libsql\/(linux|darwin|win32).*/
12
- ]
13
- {{/if}}
14
- });
@@ -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;