board-game-engine 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "board-game-engine",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "wip board game engine",
5
5
  "main": "dist/board-game-engine.js",
6
6
  "scripts": {
7
7
  "test": "jest --coverage --verbose false",
8
8
  "lint": "eslint .",
9
- "postinstall": "node ./patch-bgio.cjs",
10
9
  "build": "webpack",
11
10
  "prepublish": "npm run build"
12
11
  },
@@ -28,7 +27,7 @@
28
27
  "webpack-cli": "^4.9.1"
29
28
  },
30
29
  "dependencies": {
31
- "boardgame.io": "^0.50.2",
30
+ "@mnbroatch/boardgame.io": "0.0.1",
32
31
  "expr-eval": "^2.0.2",
33
32
  "wackson": "^1.1.0"
34
33
  },
@@ -1,6 +1,6 @@
1
- import { Client as BoardgameIOClient } from 'boardgame.io/client'
2
- import { Debug } from 'boardgame.io/debug';
3
- import { SocketIO } from 'boardgame.io/multiplayer'
1
+ import { Client as BoardgameIOClient } from '@mnbroatch/boardgame.io/client'
2
+ import { Debug } from '@mnbroatch/boardgame.io/debug';
3
+ import { SocketIO } from '@mnbroatch/boardgame.io/multiplayer'
4
4
  import { serialize, deserialize } from 'wackson';
5
5
 
6
6
  import gameFactory from '../game-factory/game-factory.js'
@@ -1,5 +1,5 @@
1
1
  import { serialize, deserialize } from 'wackson'
2
- import { INVALID_MOVE } from 'boardgame.io/dist/cjs/core.js';
2
+ import { INVALID_MOVE } from '@mnbroatch/boardgame.io/dist/cjs/core.js';
3
3
  import { registry } from '../../registry.js'
4
4
  import deserializeBgioArguments from '../../utils/deserialize-bgio-arguments.js'
5
5
  import MoveEntity from "./move-entity.js";
@@ -1,4 +1,4 @@
1
- import { INVALID_MOVE } from 'boardgame.io/dist/cjs/core.js';
1
+ import { INVALID_MOVE } from '@mnbroatch/boardgame.io/dist/cjs/core.js';
2
2
  import checkConditions from "../../utils/check-conditions.js";
3
3
  import resolveProperties from "../../utils/resolve-properties.js";
4
4
 
package/patch-bgio.cjs DELETED
@@ -1,23 +0,0 @@
1
- // scalpel to make guts.js work
2
- const fs = require('fs');
3
- const path = require('path');
4
-
5
- const serverFile = path.join(
6
- __dirname,
7
- 'node_modules',
8
- 'boardgame.io',
9
- 'dist/cjs/server.js'
10
- );
11
-
12
- fs.appendFileSync(
13
- serverFile,
14
- `
15
- exports.configureRouter = configureRouter
16
- exports.createServerRunConfig = createServerRunConfig
17
- exports.configureApp = configureApp
18
- exports.getPortFromServer = getPortFromServer
19
- exports.getPortFromServer = getPortFromServer
20
- exports.Master = Master
21
- exports.TransportAPI = TransportAPI
22
- `
23
- );