refactor: enforce package boundaries
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
"@prisma/adapter-pg": "^7.2.0",
|
||||
"@prisma/client": "^7.2.0",
|
||||
"@prisma/client-runtime-utils": "^7.2.0",
|
||||
"@sammo-ts/logic": "workspace:*",
|
||||
"es-toolkit": "^1.43.0",
|
||||
"pg": "^8.16.3",
|
||||
"redis": "^5.10.0"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { PrismaClient as GamePrismaClient } from '../prisma/generated/game/index.js';
|
||||
export { LogCategory, LogScope, Prisma as GamePrisma } from '../prisma/generated/game/index.js';
|
||||
export { Prisma as GamePrisma } from '../prisma/generated/game/index.js';
|
||||
export type { PrismaClient as GamePrismaClient } from '../prisma/generated/game/index.js';
|
||||
|
||||
import type { PostgresConfig, PostgresConnector } from './postgres.js';
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import { PrismaClient as GatewayPrismaClient } from '../prisma/generated/gateway/index.js';
|
||||
export {
|
||||
GatewayBuildStatus,
|
||||
GatewayProfileStatus,
|
||||
OAuthType,
|
||||
Prisma as GatewayPrisma,
|
||||
} from '../prisma/generated/gateway/index.js';
|
||||
export { Prisma as GatewayPrisma } from '../prisma/generated/gateway/index.js';
|
||||
export type { PrismaClient as GatewayPrismaClient } from '../prisma/generated/gateway/index.js';
|
||||
|
||||
import type { PostgresConfig, PostgresConnector } from './postgres.js';
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
export * from './postgres.js';
|
||||
export { createGamePostgresConnector, GamePrisma, LogCategory, LogScope } from './gamePrisma.js';
|
||||
export { createGamePostgresConnector, GamePrisma } from './gamePrisma.js';
|
||||
export type { GamePrismaClient } from './gamePrisma.js';
|
||||
export {
|
||||
createGatewayPostgresConnector,
|
||||
GatewayBuildStatus,
|
||||
GatewayProfileStatus,
|
||||
GatewayPrisma,
|
||||
OAuthType,
|
||||
} from './gatewayPrisma.js';
|
||||
export { createGatewayPostgresConnector, GatewayPrisma } from './gatewayPrisma.js';
|
||||
export type { GatewayPrismaClient } from './gatewayPrisma.js';
|
||||
export * from './db.js';
|
||||
export * from './errorLogRepository.js';
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import { LogCategory, LogScope, type GamePrisma, type GamePrismaClient } from './gamePrisma.js';
|
||||
import { LogCategory, LogScope } from '@sammo-ts/logic';
|
||||
|
||||
import type { GamePrisma, GamePrismaClient } from './gamePrisma.js';
|
||||
|
||||
export interface LogQueryOptions {
|
||||
limit?: number;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import type { GamePrisma, LogCategory, LogScope } from './gamePrisma.js';
|
||||
import type { LogCategory, LogScope } from '@sammo-ts/logic';
|
||||
|
||||
import type { GamePrisma } from './gamePrisma.js';
|
||||
|
||||
export type JsonValue = GamePrisma.JsonValue;
|
||||
export type InputJsonValue = GamePrisma.InputJsonValue;
|
||||
|
||||
@@ -4,5 +4,6 @@
|
||||
"outDir": "dist",
|
||||
"composite": true
|
||||
},
|
||||
"include": ["src", "test", "*.ts"]
|
||||
"include": ["src", "test", "*.ts"],
|
||||
"references": [{ "path": "../logic" }]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user