feat(16-02): create shared types package
- @codewalk-district/shared exports AppRouter and entity types - Re-exports Initiative, Phase, Plan, Task, Agent, Message from schema - Types-only package with no runtime dependencies - TypeScript resolves directly (no build step needed)
This commit is contained in:
2221
package-lock.json
generated
2221
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
packages/shared/package.json
Normal file
10
packages/shared/package.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "@codewalk-district/shared",
|
||||
"version": "0.0.1",
|
||||
"type": "module",
|
||||
"main": "./src/index.ts",
|
||||
"types": "./src/index.ts",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
}
|
||||
}
|
||||
2
packages/shared/src/index.ts
Normal file
2
packages/shared/src/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export type { AppRouter } from './trpc.js';
|
||||
export type { Initiative, Phase, Plan, Task, Agent, Message } from './types.js';
|
||||
1
packages/shared/src/trpc.ts
Normal file
1
packages/shared/src/trpc.ts
Normal file
@@ -0,0 +1 @@
|
||||
export type { AppRouter } from '../../../src/trpc/router.js';
|
||||
1
packages/shared/src/types.ts
Normal file
1
packages/shared/src/types.ts
Normal file
@@ -0,0 +1 @@
|
||||
export type { Initiative, Phase, Plan, Task, Agent, Message } from '../../../src/db/schema.js';
|
||||
13
packages/shared/tsconfig.json
Normal file
13
packages/shared/tsconfig.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"strict": true,
|
||||
"declaration": true,
|
||||
"outDir": "dist",
|
||||
"rootDir": "../..",
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
Reference in New Issue
Block a user