From fb204e8869742ceb78f39e6e96c4b73bb1340807 Mon Sep 17 00:00:00 2001 From: Daniel McCrystal Date: Fri, 8 Aug 2025 21:44:08 -0400 Subject: [PATCH] housekeeping --- packages/client/src/components/Game.tsx | 7 ++++++- packages/client/src/components/Hand.tsx | 2 +- packages/server/src/index.ts | 1 + packages/{client/src => shared}/types/cards.ts | 0 4 files changed, 8 insertions(+), 2 deletions(-) rename packages/{client/src => shared}/types/cards.ts (100%) diff --git a/packages/client/src/components/Game.tsx b/packages/client/src/components/Game.tsx index 5b15a02..597dcc5 100644 --- a/packages/client/src/components/Game.tsx +++ b/packages/client/src/components/Game.tsx @@ -10,7 +10,12 @@ import { import Card from "./Card"; import Hand from "./Hand"; import Pile from "./Pile"; -import { GameState, newDeck, shuffle, Hand as THand } from "../types/cards"; +import { + GameState, + newDeck, + shuffle, + Hand as THand, +} from "../../../shared/types/cards"; import { createStore, produce, SetStoreFunction, Store } from "solid-js/store"; import api from "../api"; diff --git a/packages/client/src/components/Hand.tsx b/packages/client/src/components/Hand.tsx index 72f83ff..15332bf 100644 --- a/packages/client/src/components/Hand.tsx +++ b/packages/client/src/components/Hand.tsx @@ -1,6 +1,6 @@ import { Component, For, useContext } from "solid-js"; import Card from "./Card"; -import { Hand } from "../types/cards"; +import { Hand } from "../../../shared/types/cards"; import { GameContext } from "./Game"; import { produce } from "solid-js/store"; diff --git a/packages/server/src/index.ts b/packages/server/src/index.ts index e8f22cb..d9936ca 100644 --- a/packages/server/src/index.ts +++ b/packages/server/src/index.ts @@ -2,6 +2,7 @@ import { Hono } from "hono"; import { serveStatic } from "hono/bun"; import api from "./api"; import { cors } from "hono/cors"; +import { createBunWebSocket } from "hono/bun"; const app = new Hono(); app.use("*", async (c, next) => { diff --git a/packages/client/src/types/cards.ts b/packages/shared/types/cards.ts similarity index 100% rename from packages/client/src/types/cards.ts rename to packages/shared/types/cards.ts