@hpx7/delta-pack
Version:
A TypeScript code generator and runtime for binary serialization based on schemas.
88 lines (87 loc) • 2.22 kB
JSON
{
"name": "@hpx7/delta-pack",
"version": "0.1.11",
"description": "A TypeScript code generator and runtime for binary serialization based on schemas.",
"license": "MIT",
"author": "hpx7",
"repository": {
"type": "git",
"url": "git+https://github.com/hpx7/delta-pack.git"
},
"keywords": [
"serialization",
"binary",
"delta",
"compression",
"codegen",
"schema",
"multiplayer",
"networking",
"state-sync"
],
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/**/*.js",
"dist/**/*.d.ts",
"README.md",
"LICENSE"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./schema": {
"types": "./dist/schema.d.ts",
"default": "./dist/schema.js"
},
"./helpers": {
"types": "./dist/helpers.d.ts",
"default": "./dist/helpers.js"
},
"./infer": {
"types": "./dist/infer.d.ts",
"default": "./dist/infer.js"
},
"./parser": {
"types": "./dist/parser.d.ts",
"default": "./dist/parser.js"
},
"./interpreter": {
"types": "./dist/interpreter.d.ts",
"default": "./dist/interpreter.js"
},
"./codegen": {
"types": "./dist/codegen.d.ts",
"default": "./dist/codegen.js"
}
},
"scripts": {
"build": "tsc -p tsconfig.build.json",
"typecheck": "tsc --noEmit",
"prepublishOnly": "npm run build",
"test:gen": "tsx test/gen.ts > test/generated-schema.ts",
"test": "npm run test:gen && vitest run",
"test:coverage": "npm run test:gen && vitest run --coverage",
"test:ui": "npm run test:gen && vitest --ui",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\""
},
"dependencies": {
"bin-serde": "^1.4.2",
"utf8-buffer-size": "^0.0.4",
"yaml": "^2.8.1"
},
"devDependencies": {
"@types/node": "^20.10.5",
"@vitest/coverage-v8": "^4.0.13",
"@vitest/ui": "^4.0.13",
"prettier": "^3.7.3",
"tsx": "^4.20.6",
"typescript": "^5.9.3",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^4.0.13"
}
}