mirror of
https://github.com/zap-proto/web.git
synced 2026-10-30 15:03:09 +00:00
typescript 7.0.2 is the native compiler, so this is a pin and not a second toolchain. tsc --noEmit over src and test: 0 diagnostics before and after. Co-authored-by: Hanzo Dev <[email protected]>
79 lines
2.0 KiB
JSON
79 lines
2.0 KiB
JSON
{
|
|
"name": "@zap-proto/web",
|
|
"version": "1.0.0",
|
|
"description": "Browser frontend RPC over ZAP — a drop-in tRPC replacement for Next.js / Remix / SvelteKit. Native ZAP envelopes over WebSocket binary frames, plus an optional JSON-over-HTTP face (httpServe) for the OpenAPI 3.1 surface emitted by zapgen. Layered on @zap-proto/zap. No Cap'n Proto.",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./server": {
|
|
"types": "./dist/server.d.ts",
|
|
"import": "./dist/server.js",
|
|
"default": "./dist/server.js"
|
|
},
|
|
"./client": {
|
|
"types": "./dist/client.d.ts",
|
|
"import": "./dist/client.js",
|
|
"default": "./dist/client.js"
|
|
},
|
|
"./transport": {
|
|
"types": "./dist/transport.d.ts",
|
|
"import": "./dist/transport.js",
|
|
"default": "./dist/transport.js"
|
|
},
|
|
"./auth": {
|
|
"types": "./dist/auth.d.ts",
|
|
"import": "./dist/auth.js",
|
|
"default": "./dist/auth.js"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"files": [
|
|
"dist",
|
|
"src"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"dev": "tsc -p tsconfig.build.json --watch",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"lint": "eslint src test",
|
|
"format": "prettier --write src test"
|
|
},
|
|
"dependencies": {
|
|
"@zap-proto/zap": "^1.3.0"
|
|
},
|
|
"peerDependencies": {
|
|
"ws": ">=8"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"ws": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"@types/ws": "^8.5.12",
|
|
"ajv": "^8.20.0",
|
|
"eslint": "^9.0.0",
|
|
"happy-dom": "^20.10.4",
|
|
"prettier": "^3.3.0",
|
|
"typescript": "7.0.2",
|
|
"vitest": "^4.1.4",
|
|
"ws": "^8.18.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|