Files
zap-es/package.json
zeekayandHanzo Dev f32671b1c8 Typecheck on the native compiler, keep 6 for the tools
typescript 7.0.2 is the native compiler and exports no JavaScript API, so this
repo's own zapc compiler and typescript-eslint cannot read it. It comes in
aliased as tsgo and runs test:types; typescript moves up to 6.0.3 for the tools,
and the peer range widens to admit it. 6 also removed moduleResolution=node10,
so resolution is bundler with types: [node]. 0 diagnostics before and after, on
both compilers.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-16 21:59:56 -07:00

95 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": "node_modules/tsgo/bin/tsc --noEmit --skipLibCheck --incremental false"
},
"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",
"tsgo": "npm:[email protected]",
"typescript": "6.0.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"
]
}