wip before nuking nixos@Felia

allow-secret-creation
pegasust 2022-12-21 00:12:55 +00:00
parent d005885a50
commit 1c2fab2537
9 changed files with 48 additions and 27 deletions

View File

@ -41,7 +41,7 @@
"prisma": "^4.5.0", "prisma": "^4.5.0",
"tailwind-scrollbar": "^2.0.1", "tailwind-scrollbar": "^2.0.1",
"tailwindcss": "^3.2.0", "tailwindcss": "^3.2.0",
"tsconfig": "workspace:*", "@acme/tsconfig": "workspace:*",
"typescript": "^4.8.4" "typescript": "^4.8.4"
}, },
"ct3aMetadata": { "ct3aMetadata": {

View File

@ -18,7 +18,7 @@
"@babel/core": "^7.0.0", "@babel/core": "^7.0.0",
"eslint-config-custom": "workspace:*", "eslint-config-custom": "workspace:*",
"eslint": "7.32.0", "eslint": "7.32.0",
"tsconfig": "workspace:*", "@acme/tsconfig": "workspace:*",
"@types/node": "^17.0.12", "@types/node": "^17.0.12",
"@types/react": "^18.0.22", "@types/react": "^18.0.22",
"@types/react-dom": "^18.0.7", "@types/react-dom": "^18.0.7",

View File

@ -35,6 +35,7 @@
"eslint-config-next": "13.0.4", "eslint-config-next": "13.0.4",
"postcss": "^8.4.19", "postcss": "^8.4.19",
"tailwindcss": "^3.2.4", "tailwindcss": "^3.2.4",
"typescript": "^4.9.3" "typescript": "^4.9.3",
"@acme/tsconfig": "workspace:*"
} }
} }

View File

@ -1,12 +1,37 @@
{ {
"extends": "../../tsconfig.json", "extends": "@acme/tsconfig/t3.json",
"exclude": [],
"include": [ "include": [
"next-env.d.ts", "next-env.d.ts",
"node_modules/@acme/auth/next-auth.d.ts",
"**/*.ts", "**/*.ts",
"**/*.tsx", "**/*.tsx",
"**/*.cjs", "**/*.cjs",
"**/*.mjs" "**/*.mjs",
"node_modules/@acme/auth/next-auth.d.ts"
],
"exclude": [
"node_modules"
],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@env/*": [
"src/env/*"
],
"@pages/*": [
"src/pages/*"
],
"@styles/*": [
"src/styles/*"
],
"@api/*": [
"@acme/api/*"
],
"@public/*": [
"public/*"
],
"@components/*": [
"src/components/*"
] ]
}
}
} }

View File

@ -18,7 +18,7 @@
"@babel/core": "^7.0.0", "@babel/core": "^7.0.0",
"eslint-config-custom": "workspace:*", "eslint-config-custom": "workspace:*",
"eslint": "7.32.0", "eslint": "7.32.0",
"tsconfig": "workspace:*", "@acme/tsconfig": "workspace:*",
"@types/node": "^17.0.12", "@types/node": "^17.0.12",
"@types/react": "^18.0.22", "@types/react": "^18.0.22",
"@types/react-dom": "^18.0.7", "@types/react-dom": "^18.0.7",

View File

@ -1,11 +1,4 @@
import { protectedProcedure, publicProcedure, router } from "../../trpc"; import { protectedProcedure, publicProcedure, router } from "../../trpc";
export const authRouter = router({ export const nameGenRouter = 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!";
}),
}); });

View File

@ -1,5 +1,5 @@
{ {
"name": "tsconfig", "name": "@acme/tsconfig",
"version": "0.0.0", "version": "0.0.0",
"private": true, "private": true,
"files": [ "files": [

View File

@ -13,7 +13,7 @@
"eslint": "^7.32.0", "eslint": "^7.32.0",
"eslint-config-custom": "workspace:*", "eslint-config-custom": "workspace:*",
"react": "^18.2.0", "react": "^18.2.0",
"tsconfig": "workspace:*", "@acme/tsconfig": "workspace:*",
"typescript": "^4.5.2" "typescript": "^4.5.2"
} }
} }

View File

@ -27,6 +27,7 @@ importers:
apps/about-me: apps/about-me:
specifiers: specifiers:
'@acme/tsconfig': workspace:*
'@babel/core': ^7.0.0 '@babel/core': ^7.0.0
'@prisma/client': ^4.5.0 '@prisma/client': ^4.5.0
'@tanstack/react-query': ^4.10.0 '@tanstack/react-query': ^4.10.0
@ -54,7 +55,6 @@ importers:
superjson: 1.9.1 superjson: 1.9.1
tailwind-scrollbar: ^2.0.1 tailwind-scrollbar: ^2.0.1
tailwindcss: ^3.2.0 tailwindcss: ^3.2.0
tsconfig: workspace:*
typescript: ^4.8.4 typescript: ^4.8.4
ui: workspace:* ui: workspace:*
zod: ^3.18.0 zod: ^3.18.0
@ -73,6 +73,7 @@ importers:
ui: link:../../packages/ui ui: link:../../packages/ui
zod: 3.19.1 zod: 3.19.1
devDependencies: devDependencies:
'@acme/tsconfig': link:../../packages/tsconfig
'@babel/core': 7.20.2 '@babel/core': 7.20.2
'@types/node': 18.11.9 '@types/node': 18.11.9
'@types/react': 18.0.25 '@types/react': 18.0.25
@ -89,11 +90,11 @@ importers:
prisma: 4.6.1 prisma: 4.6.1
tailwind-scrollbar: 2.0.1_tailwindcss@3.2.4 tailwind-scrollbar: 2.0.1_tailwindcss@3.2.4
tailwindcss: 3.2.4_postcss@8.4.14 tailwindcss: 3.2.4_postcss@8.4.14
tsconfig: link:../../packages/tsconfig
typescript: 4.8.4 typescript: 4.8.4
apps/docs: apps/docs:
specifiers: specifiers:
'@acme/tsconfig': workspace:*
'@babel/core': ^7.0.0 '@babel/core': ^7.0.0
'@types/node': ^17.0.12 '@types/node': ^17.0.12
'@types/react': ^18.0.22 '@types/react': ^18.0.22
@ -103,7 +104,6 @@ importers:
next: 13.0.0 next: 13.0.0
react: 18.2.0 react: 18.2.0
react-dom: 18.2.0 react-dom: 18.2.0
tsconfig: workspace:*
typescript: ^4.5.3 typescript: ^4.5.3
ui: workspace:* ui: workspace:*
dependencies: dependencies:
@ -112,13 +112,13 @@ importers:
react-dom: 18.2.0_react@18.2.0 react-dom: 18.2.0_react@18.2.0
ui: link:../../packages/ui ui: link:../../packages/ui
devDependencies: devDependencies:
'@acme/tsconfig': link:../../packages/tsconfig
'@babel/core': 7.20.2 '@babel/core': 7.20.2
'@types/node': 17.0.45 '@types/node': 17.0.45
'@types/react': 18.0.25 '@types/react': 18.0.25
'@types/react-dom': 18.0.9 '@types/react-dom': 18.0.9
eslint: 7.32.0 eslint: 7.32.0
eslint-config-custom: link:../../packages/eslint-config-custom eslint-config-custom: link:../../packages/eslint-config-custom
tsconfig: link:../../packages/tsconfig
typescript: 4.8.4 typescript: 4.8.4
apps/name-generator: apps/name-generator:
@ -127,6 +127,7 @@ importers:
'@acme/auth': workspace:* '@acme/auth': workspace:*
'@acme/db': workspace:* '@acme/db': workspace:*
'@acme/tailwind-config': workspace:* '@acme/tailwind-config': workspace:*
'@acme/tsconfig': 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
@ -162,6 +163,7 @@ importers:
react-dom: 18.2.0_react@18.2.0 react-dom: 18.2.0_react@18.2.0
zod: 3.19.1 zod: 3.19.1
devDependencies: devDependencies:
'@acme/tsconfig': link:../../packages/tsconfig
'@types/node': 18.11.9 '@types/node': 18.11.9
'@types/react': 18.0.25 '@types/react': 18.0.25
'@types/react-dom': 18.0.9 '@types/react-dom': 18.0.9
@ -174,6 +176,7 @@ importers:
apps/web: apps/web:
specifiers: specifiers:
'@acme/tsconfig': workspace:*
'@babel/core': ^7.0.0 '@babel/core': ^7.0.0
'@types/node': ^17.0.12 '@types/node': ^17.0.12
'@types/react': ^18.0.22 '@types/react': ^18.0.22
@ -183,7 +186,6 @@ importers:
next: 13.0.0 next: 13.0.0
react: 18.2.0 react: 18.2.0
react-dom: 18.2.0 react-dom: 18.2.0
tsconfig: workspace:*
typescript: ^4.5.3 typescript: ^4.5.3
ui: workspace:* ui: workspace:*
dependencies: dependencies:
@ -192,13 +194,13 @@ importers:
react-dom: 18.2.0_react@18.2.0 react-dom: 18.2.0_react@18.2.0
ui: link:../../packages/ui ui: link:../../packages/ui
devDependencies: devDependencies:
'@acme/tsconfig': link:../../packages/tsconfig
'@babel/core': 7.20.2 '@babel/core': 7.20.2
'@types/node': 17.0.45 '@types/node': 17.0.45
'@types/react': 18.0.25 '@types/react': 18.0.25
'@types/react-dom': 18.0.9 '@types/react-dom': 18.0.9
eslint: 7.32.0 eslint: 7.32.0
eslint-config-custom: link:../../packages/eslint-config-custom eslint-config-custom: link:../../packages/eslint-config-custom
tsconfig: link:../../packages/tsconfig
typescript: 4.8.4 typescript: 4.8.4
packages/api: packages/api:
@ -300,20 +302,20 @@ importers:
packages/ui: packages/ui:
specifiers: specifiers:
'@acme/tsconfig': workspace:*
'@types/react': ^18.0.17 '@types/react': ^18.0.17
'@types/react-dom': ^18.0.6 '@types/react-dom': ^18.0.6
eslint: ^7.32.0 eslint: ^7.32.0
eslint-config-custom: workspace:* eslint-config-custom: workspace:*
react: ^18.2.0 react: ^18.2.0
tsconfig: workspace:*
typescript: ^4.5.2 typescript: ^4.5.2
devDependencies: devDependencies:
'@acme/tsconfig': link:../tsconfig
'@types/react': 18.0.25 '@types/react': 18.0.25
'@types/react-dom': 18.0.9 '@types/react-dom': 18.0.9
eslint: 7.32.0 eslint: 7.32.0
eslint-config-custom: link:../eslint-config-custom eslint-config-custom: link:../eslint-config-custom
react: 18.2.0 react: 18.2.0
tsconfig: link:../tsconfig
typescript: 4.8.4 typescript: 4.8.4
packages: packages: