@esengine/ecs-framework 2.0.7 → 2.0.10

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.
Files changed (1) hide show
  1. package/package.json +7 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esengine/ecs-framework",
3
- "version": "2.0.7",
3
+ "version": "2.0.10",
4
4
  "description": "用于Laya、Cocos等游戏引擎的高性能ECS框架",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -20,14 +20,17 @@
20
20
  ],
21
21
  "scripts": {
22
22
  "clean": "rimraf bin wasm",
23
+ "clean:wasm": "rimraf src/wasm/rust-ecs-core/pkg src/wasm/rust-ecs-core/target",
24
+ "build:wasm": "cd src/wasm/rust-ecs-core && wasm-pack build --target web --out-dir ../../../bin/wasm --release",
25
+ "build:ts": "tsc",
23
26
  "prebuild": "npm run clean",
24
- "build": "tsc",
27
+ "build": "npm run build:wasm && npm run build:ts",
25
28
  "build:watch": "tsc --watch",
26
- "rebuild": "npm run clean && npm run build",
29
+ "rebuild": "npm run clean && npm run clean:wasm && npm run build",
27
30
  "test:benchmark": "npm run build && node bin/Testing/Performance/benchmark.js",
28
31
  "test:unit": "npm run build && node bin/Testing/test-runner.js",
29
32
  "benchmark": "node scripts/benchmark.js",
30
- "prepublishOnly": "npm run build",
33
+ "prepublishOnly": "npm run rebuild",
31
34
  "version:patch": "npm version patch",
32
35
  "version:minor": "npm version minor",
33
36
  "version:major": "npm version major",