{
  "name": "@colyseus/schema",
  "version": "5.0.34",
  "description": "Automatic state replication for multiplayer games. Mutate plain objects, and every client gets a live, typed mirror through delta encoding.",
  "type": "module",
  "bin": {
    "schema-codegen": "bin/schema-codegen",
    "schema-debug": "bin/schema-debug"
  },
  "scripts": {
    "bench": "node bench/run.mjs",
    "bench:compare": "node bench/run.mjs --compare",
    "bench:snapshot": "bash bench/snapshot-build.sh",
    "bench:gate": "node bench/run.mjs --assert --samples 3 --filter gate",
    "profile:cpu": "node bench/profile.mjs --cpu",
    "profile:heap": "node bench/profile.mjs --heap",
    "build": "node node_modules/typescript/bin/tsc -p tsconfig.build.json && rollup -c rollup.config.mjs",
    "watch": "node node_modules/typescript/bin/tsc -p tsconfig.build.json -w",
    "typecheck:build": "node node_modules/typescript/bin/tsc -p tsconfig.build.json --noEmit",
    "test": "npm run test:types && npm run test:mocha",
    "test:mocha": "tsx --tsconfig tsconfig.test.json ./node_modules/mocha/bin/mocha.js \"test/*.test.ts\" \"test/**/*.test.ts\"",
    "test:types": "node node_modules/typescript/bin/tsc -p tsconfig.build.json && node test/types/run.mjs typescript typescript-7",
    "test:exports": "node test/verify-exports.mjs",
    "test:polyfill": "npm run test:mocha -- --require ./test/metadata-polyfill/preload.mjs",
    "typecheck": "node node_modules/typescript/bin/tsc -p tsconfig.test.json",
    "coverage": "c8 npm run test",
    "generate-test-1": "bin/schema-codegen test-external/PrimitiveTypes.ts --csharp --namespace SchemaTest.PrimitiveTypes --output ../colyseus-unity-sdk/Assets/Colyseus/Tests/Editor/ColyseusTests/Schema/PrimitiveTypes",
    "generate-test-2": "bin/schema-codegen test-external/ChildSchemaTypes.ts --csharp --namespace SchemaTest.ChildSchemaTypes --output ../colyseus-unity-sdk/Assets/Colyseus/Tests/Editor/ColyseusTests/Schema/ChildSchemaTypes",
    "generate-test-3": "bin/schema-codegen test-external/ArraySchemaTypes.ts --csharp --namespace SchemaTest.ArraySchemaTypes --output ../colyseus-unity-sdk/Assets/Colyseus/Tests/Editor/ColyseusTests/Schema/ArraySchemaTypes",
    "generate-test-4": "bin/schema-codegen test-external/MapSchemaTypes.ts --csharp --namespace SchemaTest.MapSchemaTypes --output ../colyseus-unity-sdk/Assets/Colyseus/Tests/Editor/ColyseusTests/Schema/MapSchemaTypes",
    "generate-test-5": "bin/schema-codegen test-external/InheritedTypes.ts --csharp --namespace SchemaTest.InheritedTypes --output ../colyseus-unity-sdk/Assets/Colyseus/Tests/Editor/ColyseusTests/Schema/InheritedTypes",
    "generate-test-6": "bin/schema-codegen test-external/MapSchemaInt8.ts --csharp --namespace SchemaTest.MapSchemaInt8 --output ../colyseus-unity-sdk/Assets/Colyseus/Tests/Editor/ColyseusTests/Schema/MapSchemaInt8",
    "generate-test-7": "bin/schema-codegen test-external/BackwardsForwards.ts --csharp --namespace SchemaTest.BackwardsForwards --output ../colyseus-unity-sdk/Assets/Colyseus/Tests/Editor/ColyseusTests/Schema/BackwardsForwards",
    "generate-test-8": "bin/schema-codegen test-external/FilteredTypes.ts --csharp --namespace SchemaTest.FilteredTypes --output ../colyseus-unity-sdk/Assets/Colyseus/Tests/Editor/ColyseusTests/Schema/FilteredTypes",
    "generate-test-9": "bin/schema-codegen test-external/InstanceSharingTypes.ts --csharp --namespace SchemaTest.InstanceSharingTypes --output ../colyseus-unity-sdk/Assets/Colyseus/Tests/Editor/ColyseusTests/Schema/InstanceSharingTypes",
    "generate-test-10": "bin/schema-codegen test-external/Callbacks.ts --csharp --namespace SchemaTest.Callbacks --output ../colyseus-unity-sdk/Assets/Colyseus/Tests/Editor/ColyseusTests/Schema/Callbacks",
    "generate-test-11": "bin/schema-codegen test-external/MapSchemaMoveNullifyType.ts --csharp --namespace SchemaTest.MapSchemaMoveNullifyType --output ../colyseus-unity-sdk/Assets/Colyseus/Tests/Editor/ColyseusTests/Schema/MapSchemaMoveNullifyType",
    "generate-test-12": "bin/schema-codegen test-external/ArraySchemaClear --csharp --namespace SchemaTest.ArraySchemaClear --output ../colyseus-unity-sdk/Assets/Colyseus/Tests/Editor/ColyseusTests/Schema/ArraySchemaClear",
    "prepare": "npm run build"
  },
  "files": [
    "src",
    "build",
    "bin"
  ],
  "types": "./build/index.d.ts",
  "main": "./build/index.cjs",
  "module": "./build/index.mjs",
  "browser": "./build/index.js",
  "exports": {
    ".": {
      "browser": "./build/index.mjs",
      "import": "./build/index.mjs",
      "require": "./build/index.cjs",
      "types": "./build/index.d.ts"
    },
    "./input": {
      "browser": "./build/input/index.mjs",
      "import": "./build/input/index.mjs",
      "require": "./build/input/index.cjs",
      "types": "./build/input/index.d.ts"
    }
  },
  "repository": {
    "url": "git://github.com/colyseus/schema.git",
    "type": "git"
  },
  "keywords": [
    "schema",
    "binary",
    "serialization",
    "serializer",
    "netcode"
  ],
  "author": "Endel Dreyer",
  "license": "MIT",
  "devDependencies": {
    "@msgpack/msgpack": "^1.9.1",
    "@rollup/plugin-typescript": "^11.1.6",
    "@types/benchmark": "^2.1.0",
    "@types/mocha": "^5.2.5",
    "@types/node": "^14.0.13",
    "@types/sinon": "^7.0.3",
    "benchmark": "^2.1.4",
    "c8": "^10.1.2",
    "core-js": "^3.44.0",
    "flatbuffers": "^1.10.2",
    "fossil-delta": "^1.0.2",
    "glob": "^13.0.0",
    "mocha": "^10.2.0",
    "msgpackr": "^1.6.1",
    "nanoid": "^5.1.6",
    "rimraf": "^6.1.2",
    "rollup": "^4.18.0",
    "sinon": "^7.2.2",
    "source-map-support": "^0.5.13",
    "tslib": "^2.1.0",
    "tsx": "^4.21.0",
    "typescript": "^5.9.3",
    "typescript-7": "npm:typescript@^7.0.2"
  },
  "peerDependencies": {
    "typescript": ">=5.0.0"
  },
  "peerDependenciesMeta": {
    "typescript": {
      "optional": true
    }
  },
  "c8": {
    "include": [
      "src/**/*.ts"
    ],
    "reporter": [
      "html",
      "lcov",
      "text"
    ],
    "all": true
  }
}
