feat(core-api): scaffold empty appRouter aggregator
This commit is contained in:
23
packages/core-api/package.json
Normal file
23
packages/core-api/package.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "@repo/core-api",
|
||||||
|
"private": true,
|
||||||
|
"version": "0.0.0",
|
||||||
|
"type": "module",
|
||||||
|
"exports": {
|
||||||
|
".": "./src/index.ts"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"build": "tsc --noEmit",
|
||||||
|
"lint": "eslint .",
|
||||||
|
"typecheck": "tsc --noEmit"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@repo/core-shared": "workspace:*",
|
||||||
|
"@trpc/server": "^11.0.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@repo/eslint-config": "workspace:*",
|
||||||
|
"@repo/typescript-config": "workspace:*",
|
||||||
|
"@types/node": "^22.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
1
packages/core-api/src/index.ts
Normal file
1
packages/core-api/src/index.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export { appRouter, type AppRouter } from "./root";
|
||||||
5
packages/core-api/src/root.ts
Normal file
5
packages/core-api/src/root.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import { router } from "@repo/core-shared/trpc/init";
|
||||||
|
|
||||||
|
export const appRouter = router({});
|
||||||
|
|
||||||
|
export type AppRouter = typeof appRouter;
|
||||||
9
packages/core-api/tsconfig.json
Normal file
9
packages/core-api/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"extends": "@repo/typescript-config/base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"outDir": "dist",
|
||||||
|
"rootDir": "src"
|
||||||
|
},
|
||||||
|
"include": ["src/**/*"],
|
||||||
|
"exclude": ["node_modules", "dist"]
|
||||||
|
}
|
||||||
4
packages/core-api/turbo.json
Normal file
4
packages/core-api/turbo.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"extends": ["//"],
|
||||||
|
"tags": ["core"]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user