Files
Mana-Loop/docs/circular-deps.txt
T
n8n-gitea fdf3984e75
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m30s
fix: resolve TS errors, lint issues, and test failures
- Fix TS2353 in discipline-slice.ts: widen activate() gameState type to ElementState
- Fix require() in generate-dependency-graph.js: add eslint-disable comment
- Fix require() in regression-fixes.test.ts: use ESM import instead
- Fix react-hooks/set-state-in-effect in 10 client components (add eslint-disable)
- Fix react-hooks/rules-of-hooks in EquipmentCrafter.tsx: lift store hooks to parent
- Fix 20 test failures: correct expectations for guardian floors, dodge chance, barrier rolls, element cycling, file size check
- Handle negative/zero floors in getFloorMaxHP
- Split room-utils.test.ts to enemy-barrier-utils.test.ts to stay under 400-line limit
2026-05-25 17:37:12 +02:00

16 lines
744 B
Plaintext

# Circular Dependencies
Generated: 2026-05-25T13:20:07.523Z
Found: 6 circular chain(s) — these MUST be fixed before modifying involved files.
1. Processed 135 files (1.5s) (2 warnings)
2. 1) utils/floor-utils.ts > utils/room-utils.ts > utils/enemy-utils.ts
3. 2) utils/floor-utils.ts > utils/room-utils.ts
4. 3) stores/gameStore.ts > stores/gameActions.ts
5. 4) stores/gameStore.ts > stores/gameLoopActions.ts
6. 5) stores/gameStore.ts > stores/tick-pipeline.ts
## How to fix
1. Identify which import in the chain can be extracted to a shared types/utils file.
2. Move the shared type or function there.
3. Both files import from the new shared module instead of each other.
4. Run: bunx madge --circular src/lib/game (should return clean)