configs are reachable now i hope
parent
1acfede68f
commit
d005885a50
|
@ -11,10 +11,10 @@
|
||||||
"type-check": "tsc --noEmit"
|
"type-check": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@acme/api": "*",
|
"@acme/api": "workspace:*",
|
||||||
"@acme/auth": "*",
|
"@acme/auth": "workspace:*",
|
||||||
"@acme/db": "*",
|
"@acme/db": "workspace:*",
|
||||||
"@acme/tailwind-config": "*",
|
"@acme/tailwind-config": "workspace:*",
|
||||||
"@tanstack/react-query": "^4.16.1",
|
"@tanstack/react-query": "^4.16.1",
|
||||||
"@trpc/client": "^10.1.0",
|
"@trpc/client": "^10.1.0",
|
||||||
"@trpc/next": "^10.1.0",
|
"@trpc/next": "^10.1.0",
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"apps/*",
|
"apps/*",
|
||||||
"packages/*"
|
"packages/**/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "turbo build",
|
"build": "turbo build",
|
||||||
|
|
|
@ -5,6 +5,7 @@ import { authRouter } from "./auth";
|
||||||
export const appRouter = router({
|
export const appRouter = router({
|
||||||
post: postRouter,
|
post: postRouter,
|
||||||
auth: authRouter,
|
auth: authRouter,
|
||||||
|
namegen: nameGenRouter,
|
||||||
});
|
});
|
||||||
|
|
||||||
// export type definition of API
|
// 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",
|
"version": "1.0.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"license": "MIT",
|
"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:
|
packages:
|
||||||
- "apps/*"
|
- "apps/*"
|
||||||
- "packages/*"
|
- "packages/**/*"
|
||||||
|
|
Loading…
Reference in New Issue