@serenityjs/data 0.5.0 → 0.5.1-beta-20240915201114
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/dist/index.js +8 -24
- package/package.json +29 -29
package/dist/index.js
CHANGED
|
@@ -36,30 +36,14 @@ module.exports = __toCommonJS(src_exports);
|
|
|
36
36
|
var import_node_fs = require("fs");
|
|
37
37
|
var import_node_path = require("path");
|
|
38
38
|
var data = (0, import_node_path.resolve)(__dirname, "../data");
|
|
39
|
-
var BLOCK_STATES = JSON.parse(
|
|
40
|
-
|
|
41
|
-
);
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
);
|
|
45
|
-
var
|
|
46
|
-
|
|
47
|
-
);
|
|
48
|
-
var BLOCK_DROPS = JSON.parse(
|
|
49
|
-
(0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "block_drops.json"), "utf8")
|
|
50
|
-
);
|
|
51
|
-
var ITEM_TYPES = JSON.parse(
|
|
52
|
-
(0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "item_types.json"), "utf8")
|
|
53
|
-
);
|
|
54
|
-
var ENTITY_TYPES = JSON.parse(
|
|
55
|
-
(0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "entity_types.json"), "utf8")
|
|
56
|
-
);
|
|
57
|
-
var CANONICAL_BLOCK_STATES = (0, import_node_fs.readFileSync)(
|
|
58
|
-
(0, import_node_path.resolve)(data, "canonical_block_states.nbt")
|
|
59
|
-
);
|
|
60
|
-
var BIOME_DEFINITION_LIST = (0, import_node_fs.readFileSync)(
|
|
61
|
-
(0, import_node_path.resolve)(data, "biome_definition_list.nbt")
|
|
62
|
-
);
|
|
39
|
+
var BLOCK_STATES = JSON.parse((0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "block_states.json"), "utf8"));
|
|
40
|
+
var BLOCK_TYPES = JSON.parse((0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "block_types.json"), "utf8"));
|
|
41
|
+
var BLOCK_PERMUTATIONS = JSON.parse((0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "block_permutations.json"), "utf8"));
|
|
42
|
+
var BLOCK_DROPS = JSON.parse((0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "block_drops.json"), "utf8"));
|
|
43
|
+
var ITEM_TYPES = JSON.parse((0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "item_types.json"), "utf8"));
|
|
44
|
+
var ENTITY_TYPES = JSON.parse((0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "entity_types.json"), "utf8"));
|
|
45
|
+
var CANONICAL_BLOCK_STATES = (0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "canonical_block_states.nbt"));
|
|
46
|
+
var BIOME_DEFINITION_LIST = (0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "biome_definition_list.nbt"));
|
|
63
47
|
var CREATIVE_CONTENT = (0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "creative_content.bin"));
|
|
64
48
|
var ITEMDATA = (0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "itemdata.bin"));
|
|
65
49
|
var CRAFTING_DATA = (0, import_node_fs.readFileSync)((0, import_node_path.resolve)(data, "crafting_data.bin"));
|
package/package.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
2
|
+
"name": "@serenityjs/data",
|
|
3
|
+
"version": "0.5.1-beta-20240915201114",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"repository": "https://github.com/SerenityJS/serenity",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/**",
|
|
9
|
+
"data/**"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsup",
|
|
13
|
+
"watch": "tsup --watch",
|
|
14
|
+
"lint": "eslint src/",
|
|
15
|
+
"typecheck": "tsc --noEmit",
|
|
16
|
+
"test": "jest"
|
|
17
|
+
},
|
|
18
|
+
"jest": {
|
|
19
|
+
"preset": "@serenityjs/jest-presets/jest/node"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@serenityjs/eslint-config": "0.5.1-beta-20240915201114",
|
|
23
|
+
"@serenityjs/jest-presets": "0.5.1-beta-20240915201114",
|
|
24
|
+
"@serenityjs/typescript-config": "0.5.1-beta-20240915201114",
|
|
25
|
+
"@types/jest": "^29.5.12",
|
|
26
|
+
"@types/node": "^20.11.24",
|
|
27
|
+
"jest": "^29.7.0",
|
|
28
|
+
"tsup": "^8.0.2",
|
|
29
|
+
"typescript": "^5.4.2"
|
|
30
|
+
}
|
|
31
31
|
}
|