So I've been looking at the codemod that helps with transition towards v10 and I haven't been able to get it to work, my setup (simplified):
// the following structure is inside /server/trpc/src├── context.ts // createContext├── index.ts // main router entry point, this mainly does .merge calls to subrouters (auth.router.ts)├── middlewares│ └── meta-routers.ts // this is where I'm exporting createPrivateRouter├── utils│ └── trpc.ts // this is where I'm calling initializing v10 stuff ( exporting mergeRouters, privateProcedure... )├── routers│ ├── auth│ │ ├── auth.router.ts // subrouter that merges every procedure in the subfolder (signin.ts)│ │ ├── auth.router.test.ts // tests for this specific router ( using .createCaller() calls )│ │ ├── procedures│ │ │ └── signin.ts // this exports a single procedure using `export default createPrivateRouter.query('....')`
// the following structure is inside /server/trpc/src├── context.ts // createContext├── index.ts // main router entry point, this mainly does .merge calls to subrouters (auth.router.ts)├── middlewares│ └── meta-routers.ts // this is where I'm exporting createPrivateRouter├── utils│ └── trpc.ts // this is where I'm calling initializing v10 stuff ( exporting mergeRouters, privateProcedure... )├── routers│ ├── auth│ │ ├── auth.router.ts // subrouter that merges every procedure in the subfolder (signin.ts)│ │ ├── auth.router.test.ts // tests for this specific router ( using .createCaller() calls )│ │ ├── procedures│ │ │ └── signin.ts // this exports a single procedure using `export default createPrivateRouter.query('....')`