configs are reachable now i hope
parent
1acfede68f
commit
d005885a50
|
@ -11,10 +11,10 @@
|
|||
"type-check": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@acme/api": "*",
|
||||
"@acme/auth": "*",
|
||||
"@acme/db": "*",
|
||||
"@acme/tailwind-config": "*",
|
||||
"@acme/api": "workspace:*",
|
||||
"@acme/auth": "workspace:*",
|
||||
"@acme/db": "workspace:*",
|
||||
"@acme/tailwind-config": "workspace:*",
|
||||
"@tanstack/react-query": "^4.16.1",
|
||||
"@trpc/client": "^10.1.0",
|
||||
"@trpc/next": "^10.1.0",
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"private": true,
|
||||
"workspaces": [
|
||||
"apps/*",
|
||||
"packages/*"
|
||||
"packages/**/*"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "turbo build",
|
||||
|
|
|
@ -5,6 +5,7 @@ import { authRouter } from "./auth";
|
|||
export const appRouter = router({
|
||||
post: postRouter,
|
||||
auth: authRouter,
|
||||
namegen: nameGenRouter,
|
||||
});
|
||||
|
||||
// export type definition of API
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
import { protectedProcedure, publicProcedure, router } from "../../trpc";
|
||||
|
||||
export const authRouter = router({
|
||||
getSession: publicProcedure.query(({ ctx }) => {
|
||||
return ctx.session;
|
||||
}),
|
||||
getSecretMessage: protectedProcedure.query(() => {
|
||||
// testing type validation of overridden next-auth Session in @acme/auth package
|
||||
return "you can see this secret message!";
|
||||
}),
|
||||
});
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "config",
|
||||
"name": "@acme/eslint-config",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
1150
pnpm-lock.yaml
1150
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -1,3 +1,3 @@
|
|||
packages:
|
||||
- "apps/*"
|
||||
- "packages/*"
|
||||
- "packages/**/*"
|
||||
|
|
Loading…
Reference in New Issue