mirror of
https://github.com/zap-proto/zap-es.git
synced 2026-10-30 15:02:55 +00:00
94 lines
2.8 KiB
JSON
94 lines
2.8 KiB
JSON
{
|
|
"name": "zap-es",
|
|
"version": "0.0.14",
|
|
"description": "Deprecated — superseded by @zap-proto/zap. Early TypeScript ZAP (Zero-copy Application Protocol) serialization library.",
|
|
"repository": "zap-proto/zap-es",
|
|
"license": "MIT",
|
|
"sideEffects": false,
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.mts",
|
|
"default": "./dist/index.mjs"
|
|
},
|
|
"./compiler": {
|
|
"types": "./dist/compiler/index.d.mts",
|
|
"default": "./dist/compiler/index.mjs"
|
|
},
|
|
"./zap/*": {
|
|
"types": "./dist/zap/*.d.mts",
|
|
"default": "./dist/zap/*.mjs"
|
|
},
|
|
"./debug": {
|
|
"types": "./dist/debug/index.d.mts",
|
|
"default": "./dist/debug/index.mjs"
|
|
}
|
|
},
|
|
"main": "./dist/index.mjs",
|
|
"module": "./dist/index.mjs",
|
|
"types": "./dist/index.d.mts",
|
|
"bin": {
|
|
"zap-es": "./dist/compiler/zapc-js.mjs",
|
|
"zapc-js": "./dist/compiler/zapc-js.mjs",
|
|
"zapc-dts": "./dist/compiler/zapc-dts.mjs",
|
|
"zapc-ts": "./dist/compiler/zapc-ts.mjs"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"bench:bun": "bun run ./test/bench/bench.ts",
|
|
"bench:node": "node --import jiti/register ./test/bench/bench.ts",
|
|
"build": "pnpm build:std && unbuild",
|
|
"build:std": "unbuild --stub && pnpm zap-es src/zap/_zap/*.zap --src-prefix=src/zap/_zap -ots:./src/zap && prettier -w ./src/zap",
|
|
"zap-es": "jiti ./src/compiler/zapc-js.ts",
|
|
"dev": "vitest dev",
|
|
"lint": "eslint . && prettier -c .",
|
|
"lint:fix": "automd && eslint . --fix && prettier -w .",
|
|
"prepack": "pnpm build",
|
|
"play": "pnpm zap-es -ots,js,dts playground/*.zap",
|
|
"prepare": "unbuild",
|
|
"profile:bun": "bun run ./test/bench/profile.ts",
|
|
"profile:node": "node --cpu-prof --import jiti/register ./test/bench/profile.ts",
|
|
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
|
|
"test": "pnpm lint && vitest run --coverage && pnpm test:types",
|
|
"test:types": "tsc --noEmit --skipLibCheck"
|
|
},
|
|
"devDependencies": {
|
|
"@types/benchmark": "^2.1.5",
|
|
"@types/hex2dec": "^1.1.4",
|
|
"@types/node": "^22.19.19",
|
|
"@vitest/coverage-v8": "^4.1.6",
|
|
"automd": "^0.4.3",
|
|
"benchmark": "^2.1.4",
|
|
"changelogen": "^0.6.2",
|
|
"esbuild": "^0.28.0",
|
|
"eslint": "^9.39.4",
|
|
"eslint-config-unjs": "^0.6.2",
|
|
"hex2dec": "^1.1.2",
|
|
"jiti": "^2.7.0",
|
|
"mitata": "^1.0.34",
|
|
"prettier": "^3.8.3",
|
|
"protobufjs": "^8.3.0",
|
|
"typescript": "^5.9.3",
|
|
"unbuild": "^3.6.1",
|
|
"vite-tsconfig-paths": "^6.1.1",
|
|
"vitest": "^4.1.6"
|
|
},
|
|
"peerDependencies": {
|
|
"typescript": "^5.7.3"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"typescript": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"packageManager": "[email protected]",
|
|
"keywords": [
|
|
"zap",
|
|
"serialization",
|
|
"binary",
|
|
"rpc"
|
|
]
|
|
}
|