deps-upgrade(guide): ⬆️ Update TypeScript and Vitest configs with new compiler/test paths and environment settings
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
dd9a27155c
commit
4c8f3af8f7
2 changed files with 12 additions and 0 deletions
|
|
@ -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"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue