**Problem:**
- TypeScript was compiling .js files directly into src/ alongside .ts files
- This broke the app and polluted source control with build artifacts
**Solution:**
1. Moved socket-server.ts from root to src/socket-server.ts
- Updated imports to remove './src/' prefix (now './lib/...')
2. Updated tsconfig.server.json:
- Added rootDir: "./src" to ensure clean dist/ structure
- Updated include path from "socket-server.ts" to "src/socket-server.ts"
3. server.js already correctly requires from ./dist/*
**Result:**
- TypeScript now compiles to dist/ with clean structure:
- src/socket-server.ts → dist/socket-server.js ✓
- src/db/index.ts → dist/db/index.js ✓
- No dist/src/ subdirectory ✓
- No .js files created in src/ ✓
- Dev server starts successfully
- Build artifacts properly separated from source code
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
BREAKING: This fixes a critical issue where compiled .js files were
being committed directly into src/ alongside .ts files, breaking the
app and polluting source control.
Changes:
- Fix tsconfig.server.json: outDir "." → "./dist", rootDir "." → "./src"
- Remove 23 tracked .js files from src/ directory
- Update .gitignore to block src/**/*.js and /dist
- Clean working directory of all .js artifacts
This ensures TypeScript compilation outputs to dist/ folder, not src/.
Fixes player ownership implementation and all future builds.
Add Biome for formatting and general linting, with minimal ESLint
configuration for React Hooks rules only. This provides:
- Fast formatting via Biome (10-100x faster than Prettier)
- General JS/TS linting via Biome
- React Hooks validation via ESLint (rules-of-hooks)
- Import organization via Biome
Configuration files:
- biome.jsonc: Biome config with custom rule overrides
- eslint.config.js: Minimal flat config for React Hooks only
- .gitignore: Added Biome cache exclusion
- LINTING.md: Documentation for the setup
Scripts added to package.json:
- npm run lint: Check all files
- npm run lint:fix: Auto-fix issues
- npm run format: Format all files
- npm run check: Full Biome check
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>