typed-factorio 0.4.1 → 0.6.1

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.
@@ -4,48 +4,48 @@
4
4
  * This is the main object, through which most of the API is accessed. It is, however, not available inside handlers
5
5
  * registered with {@link LuaBootstrap.on_load LuaBootstrap::on_load}.
6
6
  *
7
- * {@link https://lua-api.factorio.com/1.1.38/ View documentation}
7
+ * {@link https://lua-api.factorio.com/next/ View documentation}
8
8
  */
9
- declare const game: LuaGameScript;
9
+ declare const game: LuaGameScript
10
10
 
11
11
  /**
12
12
  * Provides an interface for registering event handlers.
13
13
  *
14
- * {@link https://lua-api.factorio.com/1.1.38/ View documentation}
14
+ * {@link https://lua-api.factorio.com/next/ View documentation}
15
15
  */
16
- declare const script: LuaBootstrap;
16
+ declare const script: LuaBootstrap
17
17
 
18
18
  /**
19
19
  * Allows inter-mod communication by way of providing a repository of interfaces that is shared by all mods.
20
20
  *
21
- * {@link https://lua-api.factorio.com/1.1.38/ View documentation}
21
+ * {@link https://lua-api.factorio.com/next/ View documentation}
22
22
  */
23
- declare const remote: LuaRemote;
23
+ declare const remote: LuaRemote
24
24
 
25
25
  /**
26
26
  * Allows registering custom commands for the in-game console accessible via the grave key.
27
27
  *
28
- * {@link https://lua-api.factorio.com/1.1.38/ View documentation}
28
+ * {@link https://lua-api.factorio.com/next/ View documentation}
29
29
  */
30
- declare const commands: LuaCommandProcessor;
30
+ declare const commands: LuaCommandProcessor
31
31
 
32
32
  /**
33
33
  * Allows reading the current mod settings.
34
34
  *
35
- * {@link https://lua-api.factorio.com/1.1.38/ View documentation}
35
+ * {@link https://lua-api.factorio.com/next/ View documentation}
36
36
  */
37
- declare const settings: LuaSettings;
37
+ declare const settings: LuaSettings
38
38
 
39
39
  /**
40
40
  * Allows printing messages to the calling RCON instance if any.
41
41
  *
42
- * {@link https://lua-api.factorio.com/1.1.38/ View documentation}
42
+ * {@link https://lua-api.factorio.com/next/ View documentation}
43
43
  */
44
- declare const rcon: LuaRCON;
44
+ declare const rcon: LuaRCON
45
45
 
46
46
  /**
47
47
  * Allows rendering of geometric shapes, text and sprites in the game world.
48
48
  *
49
- * {@link https://lua-api.factorio.com/1.1.38/ View documentation}
49
+ * {@link https://lua-api.factorio.com/next/ View documentation}
50
50
  */
51
- declare const rendering: LuaRendering;
51
+ declare const rendering: LuaRendering
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typed-factorio",
3
- "version": "0.4.1",
3
+ "version": "0.6.1",
4
4
  "description": "Featureful typescript definitions for the the Factorio modding lua api.",
5
5
  "keywords": [
6
6
  "factorio",
@@ -15,7 +15,7 @@
15
15
  ],
16
16
  "homepage": "https://github.com/GlassBricks/typed-factorio#readme",
17
17
  "scripts": {
18
- "generate": "cd ../generator && yarn run gen --in ../definitions/generatorSrc --out ../definitions/generated --warn-as-error",
18
+ "generate": "cd ../generator && yarn run check && yarn run gen --in ../definitions/generatorSrc --out ../definitions/generated --warn-as-error",
19
19
  "generate:dev": "cd ../generator && yarn run gen --in ../definitions/generatorSrc --out ../definitions/generated --no-format",
20
20
  "clean": "rimraf ./generated",
21
21
  "pretest": "yarn run generate",
@@ -25,7 +25,8 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "lua-types": "^2.10.1",
28
- "typescript-to-lua": "^0.42.0"
28
+ "typescript": "~4.3.5",
29
+ "typescript-to-lua": "^1.0.0"
29
30
  },
30
31
  "devDependencies": {
31
32
  "@types/jest": "^26.0.24",
@@ -33,7 +34,6 @@
33
34
  "jest": "^27.0.6",
34
35
  "prettier": "^2.3.2",
35
36
  "ts-jest": "^27.0.4",
36
- "ts-node": "^10.1.0",
37
- "typescript": "^4.3.5"
37
+ "ts-node": "^10.1.0"
38
38
  }
39
39
  }