**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>
57 lines
612 B
Plaintext
57 lines
612 B
Plaintext
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
|
|
# dependencies
|
|
/node_modules
|
|
/.pnp
|
|
.pnp.js
|
|
|
|
# testing
|
|
/coverage
|
|
|
|
# next.js
|
|
/.next/
|
|
/out/
|
|
|
|
# production
|
|
/build
|
|
|
|
# misc
|
|
.DS_Store
|
|
*.pem
|
|
|
|
# debug
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
|
|
# local env files
|
|
.env*.local
|
|
|
|
# vercel
|
|
.vercel
|
|
|
|
# typescript
|
|
*.tsbuildinfo
|
|
next-env.d.ts
|
|
|
|
# compiled server-side code (from tsconfig.server.json)
|
|
/dist
|
|
src/**/*.js
|
|
src/**/*.js.map
|
|
/socket-server.js
|
|
|
|
# vitest
|
|
/.vitest
|
|
|
|
# storybook
|
|
storybook-static
|
|
|
|
# panda css
|
|
styled-system
|
|
|
|
# generated
|
|
src/generated/build-info.json
|
|
|
|
# biome
|
|
.biome
|