|
2 | 2 | "name": "@colyseus/schema", |
3 | 3 | "version": "4.0.5", |
4 | 4 | "description": "Binary state serializer with delta encoding for games", |
| 5 | + "type": "module", |
5 | 6 | "bin": { |
6 | 7 | "schema-codegen": "bin/schema-codegen", |
7 | 8 | "schema-debug": "bin/schema-debug" |
8 | 9 | }, |
9 | 10 | "scripts": { |
10 | | - "build": "tsc && rollup -c rollup.config.mjs", |
11 | | - "watch": "tsc -w", |
| 11 | + "build": "tsc -p tsconfig.build.json && rollup -c rollup.config.mjs", |
| 12 | + "watch": "tsc -p tsconfig.build.json -w", |
12 | 13 | "test": "tsx --tsconfig tsconfig.test.json ./node_modules/.bin/mocha test/*.test.ts test/**/*.test.ts", |
13 | 14 | "coverage": "c8 npm run test", |
14 | 15 | "generate-test-1": "bin/schema-codegen test-external/PrimitiveTypes.ts --namespace SchemaTest.PrimitiveTypes --output ../colyseus-unity-sdk/Assets/Colyseus/Tests/Editor/ColyseusTests/Schema/PrimitiveTypes", |
|
27 | 28 | }, |
28 | 29 | "files": [ |
29 | 30 | "src", |
30 | | - "lib", |
31 | 31 | "build", |
32 | 32 | "bin" |
33 | 33 | ], |
34 | | - "types": "lib/index.d.ts", |
35 | | - "main": "build/cjs/index.js", |
36 | | - "module": "build/esm/index.mjs", |
37 | | - "browser": "./build/umd/index.js", |
| 34 | + "types": "./build/index.d.ts", |
| 35 | + "main": "./build/index.cjs", |
| 36 | + "module": "./build/index.mjs", |
| 37 | + "browser": "./build/index.js", |
38 | 38 | "exports": { |
39 | 39 | ".": { |
40 | | - "browser": "./build/umd/index.js", |
41 | | - "import": "./build/esm/index.mjs", |
42 | | - "require": "./build/cjs/index.js", |
43 | | - "types": "./lib/index.d.ts" |
| 40 | + "browser": "./build/index.mjs", |
| 41 | + "import": "./build/index.mjs", |
| 42 | + "require": "./build/index.cjs", |
| 43 | + "types": "./build/index.d.ts" |
44 | 44 | } |
45 | 45 | }, |
46 | 46 | "repository": { |
|
60 | 60 | "@msgpack/msgpack": "^1.9.1", |
61 | 61 | "@rollup/plugin-typescript": "^11.1.6", |
62 | 62 | "@types/benchmark": "^2.1.0", |
63 | | - "@types/glob": "^7.1.1", |
64 | 63 | "@types/mocha": "^5.2.5", |
65 | 64 | "@types/node": "^14.0.13", |
66 | | - "@types/rimraf": "^2.0.3", |
67 | 65 | "@types/sinon": "^7.0.3", |
68 | 66 | "benchmark": "^2.1.4", |
69 | 67 | "c8": "^10.1.2", |
70 | 68 | "core-js": "^3.44.0", |
71 | 69 | "flatbuffers": "^1.10.2", |
72 | 70 | "fossil-delta": "^1.0.2", |
73 | | - "glob": "^7.1.5", |
| 71 | + "glob": "^13.0.0", |
74 | 72 | "mocha": "^10.2.0", |
75 | 73 | "msgpackr": "^1.6.1", |
76 | 74 | "nanoid": "^5.1.6", |
77 | | - "rimraf": "^3.0.0", |
| 75 | + "rimraf": "^6.1.2", |
78 | 76 | "rollup": "^4.18.0", |
79 | 77 | "sinon": "^7.2.2", |
80 | 78 | "source-map-support": "^0.5.13", |
81 | 79 | "tslib": "^2.1.0", |
82 | 80 | "tsx": "^4.21.0", |
83 | 81 | "typescript": "^5.9.3" |
84 | 82 | }, |
| 83 | + "peerDependencies": { |
| 84 | + "typescript": "^5.9.3" |
| 85 | + }, |
85 | 86 | "c8": { |
86 | 87 | "include": [ |
87 | 88 | "src/**/*.ts" |
|
0 commit comments