cm-engine-runner 1.1.0 → 1.1.2

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,11 +1,12 @@
1
1
  {
2
2
  "name": "cm-engine-runner",
3
- "description": "abstraction layer to run chess engines, supports opening books",
4
- "version": "1.1.0",
3
+ "description": "Abstraction layer to run chess engines, supports opening books",
4
+ "version": "1.1.2",
5
+ "type": "module",
5
6
  "main": "index.js",
6
7
  "scripts": {
7
8
  "test": "echo \"Error: no test specified\" && exit 1",
8
- "postinstall": "node postinstall.js"
9
+ "postinstall": "node postinstall.cjs"
9
10
  },
10
11
  "repository": {
11
12
  "type": "git",
@@ -24,10 +25,10 @@
24
25
  },
25
26
  "homepage": "https://github.com/shaack/cm-chess-engine-adapter#readme",
26
27
  "devDependencies": {
27
- "teevi": "^2.1.10"
28
+ "teevi": "^2.2.3"
28
29
  },
29
30
  "dependencies": {
30
- "cm-polyglot": "^1.0.6",
31
- "modrator": "^1.2.1"
31
+ "cm-polyglot": "^1.0.7",
32
+ "modlib": "^1.2.12"
32
33
  }
33
34
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Author and copyright: Stefan Haack (https://shaack.com)
3
+ * License: MIT, see file 'LICENSE'
4
+ */
5
+
6
+ const modLib = new (require("modlib"))
7
+
8
+ modLib.add("cm-polyglot")
9
+ modLib.add("cm-polyglot", "src", "stakelbase")
package/postinstall.js DELETED
@@ -1,10 +0,0 @@
1
- /**
2
- * Author and copyright: Stefan Haack (https://shaack.com)
3
- * License: MIT, see file 'LICENSE'
4
- */
5
-
6
- const ModRator = require("modrator/src/ModRator.js")
7
- const modRator = new ModRator(__dirname)
8
-
9
- modRator.addToLibrary("cm-polyglot")
10
- modRator.addToLibrary("cm-polyglot", "src", "stakelbase")