mirror of
https://github.com/zap-proto/js.git
synced 2026-10-30 15:04:48 +00:00
typescript 7.0.2 is the native compiler and exports no JavaScript API, so tsup's dts build cannot read it. It comes in aliased as tsgo and does the typechecking; typescript stays on the 6 line for tsup. 0 diagnostics before and after, dts output and the 120 vitest tests unchanged. tsup injects its own baseUrl into the compilerOptions it hands the dts build, which typescript 6 rejects as TS5101, so the tsconfig now states ignoreDeprecations "6.0". Co-authored-by: Hanzo Dev <[email protected]>
56 lines
1.4 KiB
JSON
56 lines
1.4 KiB
JSON
{
|
|
"name": "@zap-proto/zap",
|
|
"version": "1.6.0",
|
|
"description": "Native ZAP (Zero-copy Application Protocol) TypeScript wire runtime. Zero dependencies, its own wire format; byte-compatible with github.com/zap-proto/go and the luxfi/zap transport. Lives at github.com/zap-proto/js; published as @zap-proto/zap.",
|
|
"license": "MIT",
|
|
"repository": "zap-proto/js",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./node": {
|
|
"types": "./dist/node.d.ts",
|
|
"import": "./dist/node.js",
|
|
"default": "./dist/node.js"
|
|
},
|
|
"./cap": {
|
|
"types": "./dist/cap.d.ts",
|
|
"import": "./dist/cap.js",
|
|
"default": "./dist/cap.js"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"bin": {
|
|
"zapgen": "./dist/bin/zapgen.mjs"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"src"
|
|
],
|
|
"scripts": {
|
|
"build": "tsup --config tsup.config.ts",
|
|
"prepare": "tsup --config tsup.config.ts",
|
|
"typecheck": "node_modules/tsgo/bin/tsc --noEmit --incremental false",
|
|
"test": "vitest run"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"happy-dom": "^20.10.4",
|
|
"tsgo": "npm:[email protected]",
|
|
"tsup": "^8.5.1",
|
|
"typescript": "6.0.3",
|
|
"vitest": "^4.1.4"
|
|
},
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": [
|
|
"esbuild"
|
|
]
|
|
}
|
|
}
|