Skip to content

Commit

Permalink
make admin a peer dep
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Dec 4, 2024
1 parent 1581088 commit ed488b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion packages/pgkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,19 @@
"vitest": "^1.2.2"
},
"dependencies": {
"@pgkit/admin": "workspace:^",
"@pgkit/client": "workspace:^",
"@pgkit/migrator": "workspace:^",
"@pgkit/typegen": "workspace:^",
"express": "^4.18.2",
"importx": "^0.4.4",
"trpc-cli": "^0.5.0"
},
"peerDependencies": {
"@pgkit/admin": "workspace:^"
},
"peerDependenciesMeta": {
"@pgkit/admin": {
"optional": true
}
}
}
3 changes: 2 additions & 1 deletion packages/pgkit/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export const router = t.router({
port: z.number().default(7002),
}),
)
.mutation(async ({input, ctx}) => {
.output(z.void())
.mutation(async ({input, ctx}): Promise<void> => {
const {getExpressRouter} = await import('@pgkit/admin')
const app = express()
app.use(getExpressRouter(ctx.client))
Expand Down

0 comments on commit ed488b6

Please sign in to comment.