mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
Root cause of the local build:release OOM/GC-livelock (deploy blocker, 2026-06-25): tsconfig.json uses include: ["**/*.ts","**/*.tsx","**/*.js","**/*.jsx"] (recursive glob) but exclude did NOT list .claude — where git worktrees live (.claude/worktrees/). With 69 active port-* worktrees, the TS scope was 355,215 files (352,261 of them inside .claude/worktrees) vs 4,547 real source files. next build's type-check/scan processed ~70x the codebase, OOMing at 4GB AND 16GB and GC-livelocking at 32GB/64GB. CI built fine because its checkout is clean (no worktrees). After excluding .claude/.worktrees, build:release completes in 17m with the DEFAULT 4GB heap. Changes: - tsconfig.json exclude: + .claude .worktrees .source coverage @omniroute .tmp dist _ideia; removed 6 stale entries for dirs that no longer exist. - .dockerignore: + .claude .source (the _* glob already covered underscore dirs). - CLAUDE.md: standardize ALL worktrees under .claude/worktrees/ (was split with .worktrees/), the single gitignored + build-excluded location the native EnterWorktree tool uses.
71 lines
1.3 KiB
JSON
71 lines
1.3 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"lib": [
|
|
"dom",
|
|
"dom.iterable",
|
|
"esnext"
|
|
],
|
|
"allowJs": true,
|
|
"checkJs": false,
|
|
"skipLibCheck": true,
|
|
"strict": false,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "react-jsx",
|
|
"incremental": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"paths": {
|
|
"@/*": [
|
|
"./src/*"
|
|
],
|
|
"@omniroute/open-sse": [
|
|
"./open-sse"
|
|
],
|
|
"@omniroute/open-sse/*": [
|
|
"./open-sse/*"
|
|
]
|
|
},
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
]
|
|
},
|
|
"include": [
|
|
"next-env.d.ts",
|
|
"**/*.ts",
|
|
"**/*.tsx",
|
|
"**/*.js",
|
|
"**/*.jsx",
|
|
".next/types/**/*.ts",
|
|
".next/dev/types/**/*.ts",
|
|
".next/dev/dev/types/**/*.ts",
|
|
".next-playwright/types/**/*.ts",
|
|
".next-playwright/dev/types/**/*.ts",
|
|
".build/next/types/**/*.ts",
|
|
".build/next/dev/types/**/*.ts",
|
|
".build/next/dev/dev/types/**/*.ts"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"open-sse",
|
|
"dist",
|
|
"coverage",
|
|
".source",
|
|
".tmp",
|
|
".claude",
|
|
".worktrees",
|
|
"@omniroute",
|
|
"_tasks",
|
|
"_ideia",
|
|
"_mono_repo",
|
|
"_references"
|
|
]
|
|
}
|