core-trpc imported AppRouter (type-only) from core-api, which depends on the features, which depend on core-trpc — a cycle that killed every turbo graph walk (lint/build/CI) and an illegal core -> core-composition boundary edge. The tRPC context is now router-agnostic (AnyTRPCRouter); useTRPC takes the router type as a generic and each feature exports a type-only app-slice (e.g. BlogAppSlice) mirroring its mount key, so UI hooks keep full procedure typing without touching the composition layer. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
38 lines
1012 B
JSON
38 lines
1012 B
JSON
{
|
|
"name": "@repo/core-trpc",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./next": "./src/providers/next-provider.tsx",
|
|
"./tanstack": "./src/providers/tanstack-provider.tsx"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc --noEmit",
|
|
"lint": "eslint .",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run --passWithNoTests"
|
|
},
|
|
"dependencies": {
|
|
"@tanstack/react-query": "^5.66.0",
|
|
"@trpc/client": "^11.17.0",
|
|
"@trpc/react-query": "^11.17.0",
|
|
"@trpc/server": "^11.17.0",
|
|
"@trpc/tanstack-react-query": "^11.17.0",
|
|
"react": "^19.0.0",
|
|
"superjson": "^2.2.1"
|
|
},
|
|
"devDependencies": {
|
|
"@repo/core-eslint": "workspace:*",
|
|
"@repo/core-testing": "workspace:*",
|
|
"@repo/core-typescript": "workspace:*",
|
|
"@testing-library/jest-dom": "^6.5.0",
|
|
"@testing-library/react": "^16.0.0",
|
|
"@types/react": "^19.0.0",
|
|
"@vitest/coverage-v8": "^3.2.7",
|
|
"jsdom": "^25.0.0",
|
|
"vitest": "^3.2.7"
|
|
}
|
|
}
|