diff --git a/apps/client/src/app.tsx b/apps/client/src/app.tsx index 5db6e0d..844e855 100644 --- a/apps/client/src/app.tsx +++ b/apps/client/src/app.tsx @@ -11,7 +11,7 @@ import { LobbyScene } from "./scenes/LobbyScene"; // 👇 共有パッケージへのパスを src/app.tsx からの相対パスに修正 -import type { Room } from "../../../packages/shared/src/types/room"; +import type { Room } from "@repo/shared/src/types/room"; type Player = { id: string; x: number; y: number; color: string; }; diff --git a/apps/client/src/scenes/LobbyScene.tsx b/apps/client/src/scenes/LobbyScene.tsx index 9dee113..f5db60d 100644 --- a/apps/client/src/scenes/LobbyScene.tsx +++ b/apps/client/src/scenes/LobbyScene.tsx @@ -1,4 +1,4 @@ -import type { Room } from "../../../../packages/shared/src/types/room"; // パスは適宜調整してください +import type { Room } from "@repo/shared/src/types/room"; // パスは適宜調整してください type Props = { room: Room | null; diff --git a/apps/server/src/network/SocketManager.ts b/apps/server/src/network/SocketManager.ts index 97ddfbf..9f51e19 100644 --- a/apps/server/src/network/SocketManager.ts +++ b/apps/server/src/network/SocketManager.ts @@ -2,7 +2,7 @@ import { Server, Socket } from "socket.io"; import { GameManager } from "../managers/GameManager.js"; // shared側の型をインポート(※パスは実際の環境に合わせて修正してください) -import type { Room } from "../../../../packages/shared/src/types/room"; +import type { Room } from "@repo/shared/src/types/room"; type RoomPlayer = Room["players"][0]; export class SocketManager {