Skip to content

Commit 23fe497

Browse files
committed
fix ESM template
1 parent 38868eb commit 23fe497

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-colyseus-app",
3-
"version": "0.16.2",
3+
"version": "0.16.3",
44
"description": "npm init template for bootstrapping an empty Colyseus project",
55
"main": "lib/index.js",
66
"bin": {

templates/esm/src/app.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { playground } from "@colyseus/playground";
77
*/
88
import { MyRoom } from "./rooms/MyRoom.js";
99

10-
export default config.default({
10+
export default config({
1111

1212
initializeGameServer: (gameServer) => {
1313
/**
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import schema from "@colyseus/schema";
1+
import { schema } from "@colyseus/schema";
22

3-
export const MyRoomState = schema.schema({
3+
export const MyRoomState = schema({
44
mySynchronizedProperty: "string"
55
})

0 commit comments

Comments
 (0)