typed-factorio 2.7.1 → 2.7.4
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +20 -16
- package/runtime/generated/concepts.d.ts +2 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "typed-factorio",
|
3
|
-
"version": "2.7.
|
3
|
+
"version": "2.7.4",
|
4
4
|
"description": "Featureful typescript definitions for the Factorio modding api.",
|
5
5
|
"keywords": [
|
6
6
|
"factorio",
|
@@ -8,7 +8,10 @@
|
|
8
8
|
"typescript-to-lua",
|
9
9
|
"tstl"
|
10
10
|
],
|
11
|
-
"repository":
|
11
|
+
"repository": {
|
12
|
+
"type": "git",
|
13
|
+
"url": "git+https://github.com/GlassBricks/typed-factorio.git"
|
14
|
+
},
|
12
15
|
"homepage": "https://github.com/GlassBricks/typed-factorio#readme",
|
13
16
|
"license": "MIT",
|
14
17
|
"files": [
|
@@ -19,27 +22,28 @@
|
|
19
22
|
"type": "module",
|
20
23
|
"packageManager": "npm@9.5.0",
|
21
24
|
"scripts": {
|
22
|
-
"generate": "
|
23
|
-
"generate-no-format": "
|
25
|
+
"generate": "tsx --tsconfig generator/tsconfig.json generator/main.ts",
|
26
|
+
"generate-no-format": "tsx --tsconfig generator/tsconfig.json generator/main.ts --no-format",
|
24
27
|
"clean": "rimraf runtime/generated prototype/generated",
|
25
28
|
"lint": "eslint .",
|
26
29
|
"check": "npm run lint",
|
27
30
|
"prepublishOnly": "npm run generate && npm run check",
|
28
|
-
"
|
29
|
-
"
|
31
|
+
"script": "tsx --tsconfig scripts/tsconfig.json",
|
32
|
+
"download-latest-json-apis": "npm run script ./scripts/download-latest.ts",
|
33
|
+
"new-version-changelog": "npm run script ./scripts/new-version-changelog.ts",
|
30
34
|
"next-factorio-version": "npm run download-latest-json-apis && npm run clean && npm run generate && npm run check && npm run new-version-changelog && npm version minor",
|
31
|
-
"next-factorio-version-diff": "
|
35
|
+
"next-factorio-version-diff": "npm run script ./scripts/new-version-diff.ts"
|
32
36
|
},
|
33
37
|
"peerDependencies": {
|
34
38
|
"lua-types": "^2.13.1",
|
35
39
|
"typescript-to-lua": "^1.10.0"
|
36
40
|
},
|
37
41
|
"devDependencies": {
|
38
|
-
"@swc/core": "^1.3.
|
42
|
+
"@swc/core": "^1.3.107",
|
39
43
|
"@types/download": "^8.0.5",
|
40
|
-
"@types/node": "^20.
|
41
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
42
|
-
"@typescript-eslint/parser": "^6.
|
44
|
+
"@types/node": "^20.11.11",
|
45
|
+
"@typescript-eslint/eslint-plugin": "^6.20.0",
|
46
|
+
"@typescript-eslint/parser": "^6.20.0",
|
43
47
|
"chalk": "^5.3.0",
|
44
48
|
"download": "^8.0.0",
|
45
49
|
"eslint": "~8.56.0",
|
@@ -48,12 +52,12 @@
|
|
48
52
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
49
53
|
"eslint-plugin-import": "^2.29.1",
|
50
54
|
"eslint-plugin-node": "^11.1.0",
|
51
|
-
"eslint-plugin-prettier": "^5.1.
|
55
|
+
"eslint-plugin-prettier": "^5.1.3",
|
52
56
|
"lua-types": "^2.13.1",
|
53
|
-
"prettier": "^3.
|
57
|
+
"prettier": "^3.2.4",
|
54
58
|
"rimraf": "^5.0.5",
|
55
|
-
"
|
56
|
-
"typescript": "~5.
|
57
|
-
"typescript-to-lua": "^1.
|
59
|
+
"tsx": "^4.7.0",
|
60
|
+
"typescript": "~5.3.3",
|
61
|
+
"typescript-to-lua": "^1.23.0"
|
58
62
|
}
|
59
63
|
}
|
@@ -845,7 +845,7 @@ declare module "factorio:runtime" {
|
|
845
845
|
* @see Color
|
846
846
|
* @see {@link https://lua-api.factorio.com/1.1.103/concepts.html#Color Online documentation}
|
847
847
|
*/
|
848
|
-
export type ColorArray = [r: double, g: double, b: double, a?: double]
|
848
|
+
export type ColorArray = readonly [r: double, g: double, b: double, a?: double]
|
849
849
|
/**
|
850
850
|
* Same as {@link Color}, but red, green, blue and alpha values can be any floating point number, without any special handling of the range [1, 255].
|
851
851
|
* @see ColorModifierArray
|
@@ -862,7 +862,7 @@ declare module "factorio:runtime" {
|
|
862
862
|
* @see ColorModifier
|
863
863
|
* @see {@link https://lua-api.factorio.com/1.1.103/concepts.html#ColorModifier Online documentation}
|
864
864
|
*/
|
865
|
-
export type ColorModifierArray = [r: double, g: double, b: double, a?: double]
|
865
|
+
export type ColorModifierArray = readonly [r: double, g: double, b: double, a?: double]
|
866
866
|
export interface CraftingQueueItem {
|
867
867
|
/**
|
868
868
|
* The index of the item in the crafting queue.
|