Skip to content

Commit

Permalink
chore(core): fix deps and build
Browse files Browse the repository at this point in the history
  • Loading branch information
andypf committed Feb 14, 2025
1 parent bf4ceb8 commit 7fafd71
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
16 changes: 10 additions & 6 deletions apps/aurora-portal/src/server/routers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ import { auroraRouter, mergeRouters } from "./trpc"

const coreRouter = mergeRouters(auroraRouter(identityRouters), auroraRouter(computeRouters))

const extensionRouters = Object.fromEntries(
Object.entries(serverExtensions).map(([key, value]) => [key, value.appRouter])
) as {
[K in keyof typeof serverExtensions]: (typeof serverExtensions)[K]["appRouter"]
}
export let appRouter = coreRouter

export const appRouter = mergeRouters(coreRouter, auroraRouter(extensionRouters))
if (serverExtensions !== undefined && Object.keys(serverExtensions).length > 0) {
const extensionRouters = Object.fromEntries(
// @ts-expect-error Object entries
Object.entries(serverExtensions).map(([key, value]) => [key, value.appRouter])
) as {
[K in keyof typeof serverExtensions]: (typeof serverExtensions)[K]["appRouter"]
}

appRouter = mergeRouters(coreRouter, auroraRouter(extensionRouters))
}
export type AuroraRouter = typeof appRouter
3 changes: 3 additions & 0 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
"globals": "^15.8.0",
"typescript": "^5.5.4",
"typescript-eslint": "^8.13.0"
},
"dependencies": {
"@eslint/js": "^9.17.0"
}
}
4 changes: 4 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7fafd71

Please sign in to comment.