From cc1fd59b799bda3c5e115b88034549db8f8bc1be Mon Sep 17 00:00:00 2001 From: Thibaud Date: Wed, 25 Sep 2024 20:21:02 +0200 Subject: [PATCH] rename mts to ts --- .gitignore | 2 +- client.mts => client.ts | 2 +- common.mts => common.ts | 0 index.html | 2 +- package.json | 1 + server.mts => server.ts | 2 +- 6 files changed, 5 insertions(+), 4 deletions(-) rename client.mts => client.ts (99%) rename common.mts => common.ts (100%) rename server.mts => server.ts (98%) diff --git a/.gitignore b/.gitignore index 0f0c567..f5f2ba6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ node_modules/ -*.mjs +*.js diff --git a/client.mts b/client.ts similarity index 99% rename from client.mts rename to client.ts index 8d10775..ed5249e 100644 --- a/client.mts +++ b/client.ts @@ -1,4 +1,4 @@ -import { Request, Response, Message, Hello, EndGame } from "common.mjs"; +import { Request, Response, Message, Hello, EndGame } from "common.js"; const CELL_SIZE = 150; const GRID_SIZE = CELL_SIZE * 3; diff --git a/common.mts b/common.ts similarity index 100% rename from common.mts rename to common.ts diff --git a/index.html b/index.html index 227d59e..270036e 100644 --- a/index.html +++ b/index.html @@ -6,5 +6,5 @@ - + diff --git a/package.json b/package.json index 638f5cf..96373ed 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.0.0", "description": "", "main": "index.js", + "type": "module", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, diff --git a/server.mts b/server.ts similarity index 98% rename from server.mts rename to server.ts index 6535732..ab87eff 100644 --- a/server.mts +++ b/server.ts @@ -1,4 +1,4 @@ -import { Message, Response, Hello, EndGame } from "common.mjs" +import { Message, Response, Hello, EndGame } from "common.js" import { WebSocket, WebSocketServer, MessageEvent } from "ws"; const port = 1234