diff --git a/apps/server/AGENTS.md b/apps/server/AGENTS.md index 350a9a1..6f14096 100644 --- a/apps/server/AGENTS.md +++ b/apps/server/AGENTS.md @@ -54,7 +54,7 @@ bun test -t "pattern" # Run tests matching pattern ``` src/ ├── client/ # Client-side code -│ ├── orpc.client.ts # ORPC isomorphic client +│ ├── orpc.ts # ORPC isomorphic client │ └── query-client.ts # TanStack Query client ├── components/ # React components ├── routes/ # TanStack Router file routes @@ -119,7 +119,7 @@ export const router = os.router({ feature }) ### 4. Use in Components ```typescript import { useSuspenseQuery, useMutation } from '@tanstack/react-query' -import { orpc } from '@/client/orpc.client' +import { orpc } from '@/client/orpc' const { data } = useSuspenseQuery(orpc.feature.list.queryOptions()) const mutation = useMutation(orpc.feature.create.mutationOptions()) diff --git a/apps/server/src/client/orpc.client.ts b/apps/server/src/client/orpc.ts similarity index 100% rename from apps/server/src/client/orpc.client.ts rename to apps/server/src/client/orpc.ts diff --git a/apps/server/src/client/query-client.ts b/apps/server/src/client/query-client.ts index 56c4976..38acc75 100644 --- a/apps/server/src/client/query-client.ts +++ b/apps/server/src/client/query-client.ts @@ -1,5 +1,5 @@ import { createTanstackQueryUtils } from '@orpc/tanstack-query' -import { orpc as orpcClient } from './orpc.client' +import { orpc as orpcClient } from './orpc' export const orpc = createTanstackQueryUtils(orpcClient, { experimental_defaults: {