typed-factorio 4.0.1 → 4.2.0
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/README.md +2 -6
- package/package.json +21 -24
- package/prototype/generated/prototypes.d.ts +2519 -2522
- package/prototype/generated/types.d.ts +2598 -2600
- package/runtime/generated/classes.d.ts +5024 -5007
- package/runtime/generated/concepts.d.ts +11241 -11270
- package/runtime/generated/defines.d.ts +290 -286
- package/runtime/generated/events.d.ts +224 -230
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +7 -7
package/README.md
CHANGED
|
@@ -107,12 +107,8 @@ data.extend<AmmoCategory | ItemPrototype>([
|
|
|
107
107
|
])
|
|
108
108
|
|
|
109
109
|
// Use types on separate variables:
|
|
110
|
-
const fooCategory: AmmoCategory = {
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
const barItem: ItemPrototype = {
|
|
114
|
-
/* ... */
|
|
115
|
-
}
|
|
110
|
+
const fooCategory: AmmoCategory = {/* ... */}
|
|
111
|
+
const barItem: ItemPrototype = {/* ... */}
|
|
116
112
|
data.extend([fooCategory, barItem])
|
|
117
113
|
```
|
|
118
114
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typed-factorio",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Featureful typescript definitions for the Factorio modding api.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"factorio",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"!generator/**/*"
|
|
20
20
|
],
|
|
21
21
|
"type": "module",
|
|
22
|
-
"packageManager": "npm@9.
|
|
22
|
+
"packageManager": "npm@9.9.4",
|
|
23
23
|
"scripts": {
|
|
24
24
|
"generate": "tsx --tsconfig generator/tsconfig.json generator/main.ts",
|
|
25
25
|
"generate-no-format": "tsx --tsconfig generator/tsconfig.json generator/main.ts --no-format",
|
|
@@ -27,7 +27,11 @@
|
|
|
27
27
|
"lint": "eslint .",
|
|
28
28
|
"format:check": "prettier --check .",
|
|
29
29
|
"format:fix": "prettier --write .",
|
|
30
|
-
"check": "concurrently \"npm run lint\" \"npm run format:check\" \"
|
|
30
|
+
"check": "concurrently \"npm run lint\" \"npm run format:check\" \"npm run type-check\"",
|
|
31
|
+
"type-check": "concurrently \"npm:type-check:*\"",
|
|
32
|
+
"type-check:test": "tsc --noEmit -p test/tsconfig.json",
|
|
33
|
+
"type-check:generator": "tsc --noEmit -p generator/tsconfig.json",
|
|
34
|
+
"type-check:scripts": "tsc --noEmit -p scripts/tsconfig.json",
|
|
31
35
|
"prepublishOnly": "npm run generate && npm run check",
|
|
32
36
|
"script": "tsx --tsconfig scripts/tsconfig.json",
|
|
33
37
|
"check-clean-tree": "git diff --exit-code || (echo \"Generated files are out of date. Please run 'npm run generate' and commit the changes.\" && exit 1)",
|
|
@@ -41,26 +45,19 @@
|
|
|
41
45
|
"typescript-to-lua": "^1.10.0"
|
|
42
46
|
},
|
|
43
47
|
"devDependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@types/node": "^
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"eslint
|
|
56
|
-
"
|
|
57
|
-
"eslint-plugin-prettier": "^5.1.3",
|
|
58
|
-
"lua-types": "^2.13.1",
|
|
59
|
-
"prettier": "^3.2.5",
|
|
60
|
-
"rimraf": "^5.0.5",
|
|
61
|
-
"tsx": "^4.7.1",
|
|
62
|
-
"typescript": "~5.4.2",
|
|
63
|
-
"typescript-to-lua": "^1.25.0"
|
|
48
|
+
"@eslint/js": "^10.0.1",
|
|
49
|
+
"@swc/core": "^1.15.43",
|
|
50
|
+
"@types/node": "^24.13.2",
|
|
51
|
+
"concurrently": "^10.0.3",
|
|
52
|
+
"eslint": "^10.6.0",
|
|
53
|
+
"eslint-config-prettier": "^10.1.8",
|
|
54
|
+
"lua-types": "^2.14.1",
|
|
55
|
+
"prettier": "^3.9.0",
|
|
56
|
+
"rimraf": "^6.1.3",
|
|
57
|
+
"tsx": "^4.22.4",
|
|
58
|
+
"typescript": "6.0.2",
|
|
59
|
+
"typescript-eslint": "^8.62.0",
|
|
60
|
+
"typescript-to-lua": "1.37.0"
|
|
64
61
|
},
|
|
65
|
-
"factorioVersion": "2.1.
|
|
62
|
+
"factorioVersion": "2.1.9"
|
|
66
63
|
}
|