feat: initialize monorepo with shared, server, mcp, and web packages
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
3
packages/shared/src/db.ts
Normal file
3
packages/shared/src/db.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
|
||||
export const prisma = new PrismaClient();
|
||||
2
packages/shared/src/index.ts
Normal file
2
packages/shared/src/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export { prisma } from './db.js';
|
||||
export type * from './types.js';
|
||||
9
packages/shared/src/types.ts
Normal file
9
packages/shared/src/types.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
// Shared types — will be populated as we build features
|
||||
export type ApiResponse<T = unknown> = {
|
||||
success: boolean;
|
||||
data?: T;
|
||||
error?: {
|
||||
code: string;
|
||||
message: string;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user