@aethervtt/shard-procgen 0.0.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.
package/dist/worker.js ADDED
@@ -0,0 +1,13 @@
1
+ import { executeJob } from "./job.js";
2
+ import { encodeRecord } from "./record.js";
3
+ async function runGeneratorJob(job) {
4
+ const result = await executeJob({ ...job, guardAll: true });
5
+ return { packed: encodeRecord({ key: "", ...result, bytes: 0 }) };
6
+ }
7
+ function warmUp() {
8
+ return true;
9
+ }
10
+ export {
11
+ runGeneratorJob,
12
+ warmUp
13
+ };
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@aethervtt/shard-procgen",
3
+ "version": "0.0.1",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
+ },
12
+ "./worker": {
13
+ "types": "./dist/worker.d.ts",
14
+ "default": "./dist/worker.js"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "LICENSE",
20
+ "README.md"
21
+ ],
22
+ "dependencies": {
23
+ "@aethervtt/shard-assets": "0.0.1",
24
+ "@aethervtt/shard-core": "0.0.1",
25
+ "@aethervtt/shard-mesh": "0.0.1",
26
+ "@aethervtt/shard-noise": "0.0.1",
27
+ "@aethervtt/shard-platform": "0.0.1",
28
+ "@aethervtt/shard-protocol": "0.0.1",
29
+ "@aethervtt/shard-render": "0.0.1",
30
+ "@aethervtt/shard-runtime": "0.0.1",
31
+ "@aethervtt/shard-scene": "0.0.1",
32
+ "@aethervtt/shard-texture": "0.0.1"
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/aethervtt/shard.git",
37
+ "directory": "packages/procgen"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public",
41
+ "provenance": true
42
+ },
43
+ "shard": {
44
+ "buildSha": "d6c5c6aef4675575c878b02cf2c8f738b4190229"
45
+ }
46
+ }