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