Skip to content

Commit

Permalink
chore: Switching over to trpc-openapi fork
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Nov 19, 2023
1 parent 3a58bb7 commit daa9613
Show file tree
Hide file tree
Showing 9 changed files with 78 additions and 127 deletions.
2 changes: 1 addition & 1 deletion apps/web/lib-server/appRouter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {clerkClient} from '@clerk/nextjs'
import {TRPCError} from '@trpc/server'
import {generateOpenApiDocument} from 'trpc-openapi'

import {getServerUrl} from '@usevenice/app-config/constants'
import {flatRouter} from '@usevenice/engine-backend'
Expand All @@ -9,6 +8,7 @@ import {
publicProcedure,
trpc,
} from '@usevenice/engine-backend/router/_base'
import {generateOpenApiDocument} from '@usevenice/trpc-openapi'
import {z} from '@usevenice/util'

import {zAuth} from '@/lib-common/schemas'
Expand Down
4 changes: 2 additions & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@usevenice/engine-backend": "workspace:*",
"@usevenice/engine-frontend": "workspace:*",
"@usevenice/integration-postgres": "workspace:*",
"@usevenice/trpc-openapi": "1.3.6",
"@usevenice/ui": "workspace:*",
"@usevenice/util": "workspace:*",
"commandbar": "1.7.3",
Expand All @@ -48,8 +49,7 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"superjson": "1.9.1",
"swagger2openapi": "7.0.8",
"trpc-openapi": "1.2.0"
"swagger2openapi": "7.0.8"
},
"devDependencies": {
"@sentry/cli": "2.13.0",
Expand Down
3 changes: 2 additions & 1 deletion apps/web/pages/api/v0/[[...trpc]].ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import '@usevenice/app-config/register.node'

import type {NextApiHandler} from 'next'
import {createOpenApiNextHandler} from 'trpc-openapi'

import {createOpenApiNextHandler} from '@usevenice/trpc-openapi'

import {respondToCORS} from '@/lib-server'
import {appRouter} from '@/lib-server/appRouter'
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"@nangohq/[email protected]": "patches/@[email protected]",
"[email protected]": "patches/[email protected]"
"@nangohq/[email protected]": "patches/@[email protected]"
},
"peerDependencyRules": {
"allowedVersions": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@nangohq/frontend": "0.33.8",
"@types/jsonwebtoken": "9.0.2",
"@types/react": "*",
"trpc-openapi": "1.2.0"
"@usevenice/trpc-openapi": "1.3.6"
},
"peerDependencies": {
"react": "*"
Expand Down
2 changes: 1 addition & 1 deletion packages/engine-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"inngest": "1.3.1"
},
"devDependencies": {
"trpc-openapi": "1.2.0"
"@usevenice/trpc-openapi": "1.3.6"
}
}
2 changes: 1 addition & 1 deletion packages/engine-backend/router/_base.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {initTRPC, TRPCError} from '@trpc/server'
import type {OpenApiMeta} from 'trpc-openapi'

import {getExtEndUserId, hasRole} from '@usevenice/cdk'
import type {OpenApiMeta} from '@usevenice/trpc-openapi'
import {HTTPError} from '@usevenice/util'

import type {RouterContext} from '../context'
Expand Down
53 changes: 0 additions & 53 deletions patches/[email protected]

This file was deleted.

Loading

0 comments on commit daa9613

Please sign in to comment.