diff --git a/packages/boop-game/package.json b/packages/boop-game/package.json index dab1c25..c696b35 100644 --- a/packages/boop-game/package.json +++ b/packages/boop-game/package.json @@ -11,6 +11,7 @@ "@preact/signals-core": "^1.5.1", "boardgame-core": "link:../../../boardgame-core", "boardgame-phaser": "workspace:*", + "inline-schema": "link:../../../inline-schema", "mutative": "^1.3.0", "phaser": "^3.80.1", "preact": "^10.19.3" diff --git a/packages/boop-game/vite.config.ts b/packages/boop-game/vite.config.ts index acb8595..7c91217 100644 --- a/packages/boop-game/vite.config.ts +++ b/packages/boop-game/vite.config.ts @@ -2,9 +2,10 @@ import { defineConfig } from 'vite'; import preact from '@preact/preset-vite'; import tailwindcss from '@tailwindcss/vite'; import path from 'path'; +import {csvLoader} from 'inline-schema/csv-loader/rollup'; export default defineConfig({ - plugins: [preact(), tailwindcss()], + plugins: [preact(), tailwindcss(), csvLoader()], resolve: { alias: { '@': path.resolve(__dirname, 'src'), diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6bb93e7..a32aa16 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,6 +26,9 @@ importers: boardgame-phaser: specifier: workspace:* version: link:../framework + inline-schema: + specifier: link:../../../inline-schema + version: link:../../../inline-schema mutative: specifier: ^1.3.0 version: 1.3.0