From 4c8f3af8f7494157ede32a8831d963b2afd66723 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Tue, 31 Mar 2026 22:47:30 -0700 Subject: [PATCH] =?UTF-8?q?deps-upgrade(guide):=20=E2=AC=86=EF=B8=8F=20Upd?= =?UTF-8?q?ate=20TypeScript=20and=20Vitest=20configs=20with=20new=20compil?= =?UTF-8?q?er/test=20paths=20and=20environment=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- games/age-of-dwarves/guide/tsconfig.json | 6 ++++++ games/age-of-dwarves/guide/vitest.config.ts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/games/age-of-dwarves/guide/tsconfig.json b/games/age-of-dwarves/guide/tsconfig.json index 240fa6cf..718ec243 100644 --- a/games/age-of-dwarves/guide/tsconfig.json +++ b/games/age-of-dwarves/guide/tsconfig.json @@ -34,6 +34,12 @@ "@magic-civ/engine-ts": [ "../../../src/packages/engine-ts/src/index.ts" ], + "@magic-civ/engine-ts/eventSystem": [ + "../../../src/packages/engine-ts/src/eventSystem.ts" + ], + "@magic-civ/engine-ts/types": [ + "../../../src/packages/engine-ts/src/types.ts" + ], "@magic-civ/guide-engine": [ "../../../src/packages/guide/src/index.ts" ], diff --git a/games/age-of-dwarves/guide/vitest.config.ts b/games/age-of-dwarves/guide/vitest.config.ts index 6bcef937..73990ee5 100644 --- a/games/age-of-dwarves/guide/vitest.config.ts +++ b/games/age-of-dwarves/guide/vitest.config.ts @@ -14,6 +14,7 @@ export default defineConfig({ '**/simulation/__tests__/planet-lifecycle.test.ts', '**/simulation/__tests__/polar-hex-grid.test.ts', '**/simulation/__tests__/water-cycle.test.ts', + '**/simulation/__tests__/lifecycle-milestones.test.ts', ], }, resolve: { @@ -23,6 +24,11 @@ export default defineConfig({ '@worlds': path.resolve(__dirname, '../../../src/resources/worlds'), '@resources': path.resolve(__dirname, '../../../src/resources'), '@magic-civ/guide-engine': path.resolve(__dirname, '../../../src/packages/guide/src'), + // Sub-module aliases must come BEFORE the broad @magic-civ/engine-ts alias so + // that pure-TS tests can import eventSystem / types without pulling in runner.ts + // (which transitively imports WASM and fails in the node test environment). + '@magic-civ/engine-ts/eventSystem': path.resolve(__dirname, '../../../src/packages/engine-ts/src/eventSystem'), + '@magic-civ/engine-ts/types': path.resolve(__dirname, '../../../src/packages/engine-ts/src/types'), '@magic-civ/engine-ts': path.resolve(__dirname, '../../../src/packages/engine-ts/src/index.ts'), '@magic-civ/physics-rs': path.resolve(__dirname, '../../../src/simulator/pkg/magic_civ_physics.js'), },