Files
pxpipe/package.json
T
teamchong 241cdbb6aa build: pin pnpm@10.21.0 as the package manager
- Add `packageManager` field so corepack uses the pinned version
- Add `preinstall: npx only-allow pnpm` guard to block accidental
  `npm install` (npm exits non-zero with a clear redirect)
- Add `engines.pnpm: >=10` requirement
- Bundles the previously-uncommitted restart + test:restart script
  entries (already in use via the diagnostic-instrumentation slice)
2026-05-18 19:48:05 -04:00

69 lines
1.7 KiB
JSON

{
"name": "pixelpipe",
"version": "0.2.0",
"description": "Token-saving proxy for Claude Code: renders system prompt + tool definitions as images, achieving 65-73% token savings on Opus 4.7 while preserving 100% reasoning quality. Runs on Node and Cloudflare Workers.",
"type": "module",
"bin": {
"pixelpipe": "bin/cli.js"
},
"exports": {
".": {
"types": "./dist/core/proxy.d.ts",
"import": "./dist/core/proxy.js"
},
"./node": {
"types": "./dist/node.d.ts",
"import": "./dist/node.js"
},
"./worker": {
"types": "./dist/worker.d.ts",
"import": "./dist/worker.js"
}
},
"files": [
"bin/",
"dist/",
"README.md",
"LICENSE"
],
"scripts": {
"build": "node scripts/build.mjs",
"build:atlas": "tsx scripts/gen-atlas.ts",
"dev:node": "tsx watch src/node.ts",
"dev:worker": "wrangler dev",
"deploy:worker": "wrangler deploy",
"restart": "bash scripts/restart.sh",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"test:restart": "bash tests/restart.test.sh",
"preinstall": "npx only-allow pnpm"
},
"keywords": [
"claude",
"claude-code",
"anthropic",
"proxy",
"token-optimization",
"prompt-cache",
"opus-4-7",
"cloudflare-workers"
],
"engines": {
"node": ">=18",
"pnpm": ">=10"
},
"packageManager": "pnpm@10.21.0",
"license": "MIT",
"devDependencies": {
"@cloudflare/workers-types": "^4.20240512.0",
"@napi-rs/canvas": "^0.1.53",
"@types/node": "^20.12.0",
"esbuild": "^0.21.0",
"tsx": "^4.10.0",
"typescript": "^5.4.0",
"vitest": "^1.6.0",
"wrangler": "^3.60.0"
}
}