refactor: remove legacy store.ts and crafting-slice.ts, complete modular store migration
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m18s

- Delete store.ts (355 LOC monolithic store, zero imports)
- Delete crafting-slice.ts (379 LOC legacy crafting module)
- Inline createStartingEquipment() into craftingStore.ts
- Remove legacy equipment/inventory fields from GameState
- Remove EquipmentDef from game.ts imports (unused)
- Fix duplicate EquipmentSpellState export in types.ts
- Fix bluePrintId typo in craftingStore.ts
- Update stores/index.ts to import CraftingState/CraftingActions from craftingStore.types
- Update EquipmentTab.test.ts to test store state instead of deleted module
- Clean up stale comments referencing crafting-slice.ts
- Reduce TS errors from 83 to 72 by removing conflicting legacy types
This commit is contained in:
2026-05-20 12:36:00 +02:00
parent 56ac50f465
commit cba42e01ff
17 changed files with 104 additions and 781 deletions
+3 -5
View File
@@ -1,10 +1,8 @@
# Circular Dependencies
Generated: 2026-05-20T07:28:09.937Z
Found: 3 circular chain(s) — these MUST be fixed before modifying involved files.
Generated: 2026-05-20T10:00:51.281Z
Found: 1 circular chain(s) — these MUST be fixed before modifying involved files.
1. Processed 125 files (1.3s) (4 warnings)
2. 1) data/equipment/index.ts > data/equipment/utils.ts
3. 2) data/golems/index.ts > data/golems/utils.ts
1. Processed 127 files (1.4s) (4 warnings)
## How to fix
1. Identify which import in the chain can be extracted to a shared types/utils file.