payload-contracts/package.json
Martin Porwoll 774d7bc402 feat: initial payload-contracts package
Shared TypeScript types, API client, and block registry for
coordinated CMS-to-frontend development across all tenants.

- Type extraction script from payload-types.ts (12,782 lines)
- 39 frontend collection types, 42 block types
- createPayloadClient() with tenant isolation
- createBlockRenderer() for type-safe block mapping
- Media helpers (getImageUrl, getSrcSet)
- Work order system for cross-server coordination
- Block catalog documentation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 17:51:40 +00:00

62 lines
1.4 KiB
JSON

{
"name": "@c2s/payload-contracts",
"version": "1.0.0",
"description": "Shared TypeScript types, API client, and block registry for Payload CMS frontends",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./types": {
"types": "./dist/types/index.d.ts",
"import": "./dist/types/index.js"
},
"./api-client": {
"types": "./dist/api-client/index.d.ts",
"import": "./dist/api-client/index.js"
},
"./blocks": {
"types": "./dist/blocks/registry.d.ts",
"import": "./dist/blocks/registry.js"
},
"./constants": {
"types": "./dist/constants/index.d.ts",
"import": "./dist/constants/index.js"
}
},
"files": [
"dist",
"src"
],
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"typecheck": "tsc --noEmit",
"extract": "tsx scripts/extract-types.ts",
"prepublishOnly": "pnpm build"
},
"keywords": [
"payload-cms",
"types",
"api-client",
"multi-tenant"
],
"license": "UNLICENSED",
"private": true,
"devDependencies": {
"@types/react": "^19.0.0",
"typescript": "^5.7.0",
"tsx": "^4.19.0"
},
"peerDependencies": {
"react": "^19.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
}
}