From 5342e55b6ddeb9f8f768d67d0dd58fff6bcdfa24 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Sat, 28 Mar 2026 21:31:35 -0700 Subject: [PATCH] =?UTF-8?q?chore(config):=20=F0=9F=94=A7=20Update=20config?= =?UTF-8?q?uration=20defaults=20for=20new=20environment=20variables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- guide/age-of-dwarves/tsconfig.json | 3 +++ guide/age-of-dwarves/vite.config.ts | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/guide/age-of-dwarves/tsconfig.json b/guide/age-of-dwarves/tsconfig.json index 3b3535af..f9455159 100644 --- a/guide/age-of-dwarves/tsconfig.json +++ b/guide/age-of-dwarves/tsconfig.json @@ -30,6 +30,9 @@ ], "@magic-civ/guide-engine": [ "../engine/src/index.ts" + ], + "@magic-civ/guide-engine/*": [ + "../engine/src/*" ] } }, diff --git a/guide/age-of-dwarves/vite.config.ts b/guide/age-of-dwarves/vite.config.ts index 5f22c087..f89a38b9 100644 --- a/guide/age-of-dwarves/vite.config.ts +++ b/guide/age-of-dwarves/vite.config.ts @@ -1,15 +1,17 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import path from 'path' +import { simCachePlugin } from './src/vite-plugins/simCachePlugin' const GAME_ID = process.env.VITE_GAME_ID ?? 'age-of-dwarves' export default defineConfig({ - plugins: [react()], + plugins: [react(), simCachePlugin()], resolve: { alias: { '@': path.resolve(__dirname, './src'), '@data': path.resolve(__dirname, `../../games/${GAME_ID}/data`), + '@worlds': path.resolve(__dirname, '../../engine/src/worlds'), '@magic-civ/engine-ts': path.resolve(__dirname, '../../packages/engine-ts/src/index.ts'), '@magic-civ/guide-engine': path.resolve(__dirname, '../engine/src/index.ts'), },