fix: exclude dist from TypeScript compilation and add missing type import
- Add "dist" to tsconfig.server.json exclude to prevent TypeScript from seeing compiled .js files as input files (was causing TS5055 errors) - Fix schema path glob: "src/db/schema.ts" -> "src/db/schema/**/*.ts" to properly include all schema files in the directory - Add missing PlayerOwnershipMap type import in player-ownership.ts to fix TS2304 compilation error These fixes resolve the dev server compilation issues and ensure clean builds without dist/ pollution. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
4c9ce944c2
commit
b7f1d5a569
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import { eq } from "drizzle-orm";
|
||||
import { db, schema } from "@/db";
|
||||
import type { PlayerOwnershipMap } from "./player-ownership.client";
|
||||
|
||||
// Re-export all client-safe utilities
|
||||
export * from "./player-ownership.client";
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
},
|
||||
"include": [
|
||||
"src/db/index.ts",
|
||||
"src/db/schema.ts",
|
||||
"src/db/schema/**/*.ts",
|
||||
"src/db/migrate.ts",
|
||||
"src/lib/arcade/**/*.ts",
|
||||
"src/app/games/matching/context/types.ts",
|
||||
|
|
@ -24,5 +24,5 @@
|
|||
"src/app/games/matching/utils/matchValidation.ts",
|
||||
"src/socket-server.ts"
|
||||
],
|
||||
"exclude": ["node_modules", "**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts"]
|
||||
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue