housekeeping

This commit is contained in:
2025-08-08 21:44:08 -04:00
parent eb064273ed
commit fb204e8869
4 changed files with 8 additions and 2 deletions

View File

@@ -10,7 +10,12 @@ import {
import Card from "./Card"; import Card from "./Card";
import Hand from "./Hand"; import Hand from "./Hand";
import Pile from "./Pile"; 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 { createStore, produce, SetStoreFunction, Store } from "solid-js/store";
import api from "../api"; import api from "../api";

View File

@@ -1,6 +1,6 @@
import { Component, For, useContext } from "solid-js"; import { Component, For, useContext } from "solid-js";
import Card from "./Card"; import Card from "./Card";
import { Hand } from "../types/cards"; import { Hand } from "../../../shared/types/cards";
import { GameContext } from "./Game"; import { GameContext } from "./Game";
import { produce } from "solid-js/store"; import { produce } from "solid-js/store";

View File

@@ -2,6 +2,7 @@ import { Hono } from "hono";
import { serveStatic } from "hono/bun"; import { serveStatic } from "hono/bun";
import api from "./api"; import api from "./api";
import { cors } from "hono/cors"; import { cors } from "hono/cors";
import { createBunWebSocket } from "hono/bun";
const app = new Hono(); const app = new Hono();
app.use("*", async (c, next) => { app.use("*", async (c, next) => {