diff --git a/packages/docs/content/1.get-started/2.usage.md b/packages/docs/content/1.get-started/2.usage.md index 50c592e..1027cf2 100644 --- a/packages/docs/content/1.get-started/2.usage.md +++ b/packages/docs/content/1.get-started/2.usage.md @@ -34,7 +34,7 @@ Initialize your tRPC backend using the `initTRPC` function and create your first ::code-group -```ts [server/trpc/index.ts] +```ts [server/trpc/trpc.ts] import { TRPCError, initTRPC } from '@trpc/server' // Avoid exporting the entire t-object since it's not very diff --git a/packages/playground/server/trpc/routers/index.ts b/packages/playground/server/trpc/routers/index.ts index af3b1e5..683f009 100644 --- a/packages/playground/server/trpc/routers/index.ts +++ b/packages/playground/server/trpc/routers/index.ts @@ -1,4 +1,4 @@ -import { router } from '..' +import { router } from '../trpc' import { todoRouter } from './todo' import { userRouter } from './user' diff --git a/packages/playground/server/trpc/routers/todo.ts b/packages/playground/server/trpc/routers/todo.ts index 0cc93b6..871f77c 100644 --- a/packages/playground/server/trpc/routers/todo.ts +++ b/packages/playground/server/trpc/routers/todo.ts @@ -1,5 +1,5 @@ import { z } from 'zod' -import { publicProcedure, router } from '..' +import { publicProcedure, router } from '../trpc' const baseURL = 'https://jsonplaceholder.typicode.com' diff --git a/packages/playground/server/trpc/routers/user.ts b/packages/playground/server/trpc/routers/user.ts index 5b3f4ab..26ea42e 100644 --- a/packages/playground/server/trpc/routers/user.ts +++ b/packages/playground/server/trpc/routers/user.ts @@ -1,5 +1,5 @@ import { z } from 'zod' -import { publicProcedure, router } from '..' +import { publicProcedure, router } from '../trpc' const baseURL = 'https://jsonplaceholder.typicode.com' diff --git a/packages/playground/server/trpc/index.ts b/packages/playground/server/trpc/trpc.ts similarity index 100% rename from packages/playground/server/trpc/index.ts rename to packages/playground/server/trpc/trpc.ts