@esengine/ecs-framework 2.2.21 → 2.3.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.
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@esengine/ecs-framework",
3
+ "version": "2.3.1",
4
+ "description": "用于Laya、Cocos Creator等JavaScript游戏引擎的高性能ECS框架",
5
+ "main": "index.cjs",
6
+ "module": "index.mjs",
7
+ "unpkg": "index.umd.js",
8
+ "types": "index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./index.mjs",
12
+ "require": "./index.cjs",
13
+ "types": "./index.d.ts"
14
+ }
15
+ },
16
+ "files": [
17
+ "index.mjs",
18
+ "index.mjs.map",
19
+ "index.cjs",
20
+ "index.cjs.map",
21
+ "index.umd.js",
22
+ "index.umd.js.map",
23
+ "index.es5.js",
24
+ "index.es5.js.map",
25
+ "index.d.ts"
26
+ ],
27
+ "keywords": [
28
+ "ecs",
29
+ "entity-component-system",
30
+ "game-engine",
31
+ "typescript",
32
+ "cocos-creator",
33
+ "laya",
34
+ "rollup"
35
+ ],
36
+ "author": "yhh",
37
+ "license": "MIT",
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "https://github.com/esengine/ecs-framework.git",
41
+ "directory": "packages/core"
42
+ },
43
+ "engines": {
44
+ "node": ">=16.0.0"
45
+ },
46
+ "sideEffects": false
47
+ }
package/package.json CHANGED
@@ -1,47 +1,87 @@
1
1
  {
2
2
  "name": "@esengine/ecs-framework",
3
- "version": "2.2.21",
3
+ "version": "2.3.1",
4
4
  "description": "用于Laya、Cocos Creator等JavaScript游戏引擎的高性能ECS框架",
5
- "main": "index.cjs",
6
- "module": "index.mjs",
7
- "unpkg": "index.umd.js",
8
- "types": "index.d.ts",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "unpkg": "dist/index.umd.js",
9
9
  "exports": {
10
10
  ".": {
11
- "import": "./index.mjs",
12
- "require": "./index.cjs",
13
- "types": "./index.d.ts"
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.mjs",
13
+ "require": "./dist/index.cjs",
14
+ "development": {
15
+ "types": "./src/index.ts",
16
+ "import": "./src/index.ts"
17
+ }
14
18
  }
15
19
  },
16
20
  "files": [
17
- "index.mjs",
18
- "index.mjs.map",
19
- "index.cjs",
20
- "index.cjs.map",
21
- "index.umd.js",
22
- "index.umd.js.map",
23
- "index.es5.js",
24
- "index.es5.js.map",
25
- "index.d.ts"
21
+ "dist/**/*"
26
22
  ],
27
23
  "keywords": [
28
24
  "ecs",
29
25
  "entity-component-system",
30
26
  "game-engine",
31
27
  "typescript",
32
- "cocos-creator",
33
28
  "laya",
34
- "rollup"
29
+ "cocos",
30
+ "egret"
35
31
  ],
32
+ "scripts": {
33
+ "clean": "rimraf bin dist tsconfig.tsbuildinfo",
34
+ "build:ts": "tsc",
35
+ "prebuild": "npm run clean",
36
+ "build": "npm run build:ts && node build-rollup.cjs",
37
+ "build:watch": "tsc --watch",
38
+ "rebuild": "npm run clean && npm run build",
39
+ "build:npm": "npm run build",
40
+ "test": "jest --config jest.config.cjs",
41
+ "test:watch": "jest --watch --config jest.config.cjs",
42
+ "test:performance": "jest --config jest.performance.config.cjs",
43
+ "test:coverage": "jest --coverage --config jest.config.cjs",
44
+ "test:ci": "jest --ci --coverage --config jest.config.cjs",
45
+ "test:clear": "jest --clearCache",
46
+ "type-check": "npx tsc --noEmit",
47
+ "lint": "eslint \"src/**/*.{ts,tsx}\"",
48
+ "lint:fix": "eslint \"src/**/*.{ts,tsx}\" --fix"
49
+ },
36
50
  "author": "yhh",
37
51
  "license": "MIT",
52
+ "devDependencies": {
53
+ "@babel/core": "^7.28.3",
54
+ "@babel/plugin-transform-nullish-coalescing-operator": "^7.27.1",
55
+ "@babel/plugin-transform-optional-chaining": "^7.27.1",
56
+ "@babel/preset-env": "^7.28.3",
57
+ "@rollup/plugin-babel": "^6.0.4",
58
+ "@rollup/plugin-commonjs": "^28.0.3",
59
+ "@rollup/plugin-node-resolve": "^16.0.1",
60
+ "@rollup/plugin-terser": "^0.4.4",
61
+ "@jest/globals": "^29.7.0",
62
+ "@types/jest": "^29.5.14",
63
+ "@types/node": "^20.19.17",
64
+ "@eslint/js": "^9.37.0",
65
+ "eslint": "^9.37.0",
66
+ "typescript-eslint": "^8.46.1",
67
+ "jest": "^29.7.0",
68
+ "jest-environment-jsdom": "^29.7.0",
69
+ "rimraf": "^5.0.0",
70
+ "rollup": "^4.42.0",
71
+ "rollup-plugin-dts": "^6.2.1",
72
+ "ts-jest": "^29.4.0",
73
+ "typescript": "^5.8.3"
74
+ },
75
+ "publishConfig": {
76
+ "access": "public",
77
+ "registry": "https://registry.npmjs.org/"
78
+ },
38
79
  "repository": {
39
80
  "type": "git",
40
81
  "url": "https://github.com/esengine/ecs-framework.git",
41
82
  "directory": "packages/core"
42
83
  },
43
- "engines": {
44
- "node": ">=16.0.0"
45
- },
46
- "sideEffects": false
47
- }
84
+ "dependencies": {
85
+ "tslib": "^2.8.1"
86
+ }
87
+ }