Skip to content

Commit

Permalink
fix: Remove circular dependency so app launches again
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Nov 5, 2023
1 parent b47825c commit 27eea50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/cdk-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@nangohq/frontend": "0.33.8",
"@types/jsonwebtoken": "9.0.2",
"@types/react": "*",
"@usevenice/engine-backend": "workspace:*",
"trpc-openapi": "1.2.0"
},
"peerDependencies": {
Expand Down
7 changes: 5 additions & 2 deletions packages/cdk-core/verticals/new-mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ import type {
} from '@trpc/server'
import {TRPCError} from '@trpc/server'

import {z} from '@usevenice/util'

// FIXME: This is explicitly bypassing the package system because we have a circular
// dependency here which is not great but ....
import type {
remoteProcedure,
RemoteProcedureContext,
trpc,
} from '@usevenice/engine-backend/router/_base'
import {z} from '@usevenice/util'
} from '../../engine-backend/router/_base'

export type RouterMap<TRouter extends AnyRouter, TOpts = {}> = {
[k in keyof TRouter as TRouter[k] extends AnyProcedure
Expand Down

0 comments on commit 27eea50

Please sign in to comment.