payload-contracts/package.json
Martin Porwoll d49ccf366b fix: remove devDependencies to fix npm git dep install on Plesk
npm installs devDeps (--include=dev) when preparing git dependencies.
esbuild (via tsx) has native install script that fails on Plesk nodenv.
Since this package exports TypeScript source files directly, no build
tools are needed at install time.

devDependencies (typescript, tsx, @types/react) are only needed for
local development on sv-payload and can be installed manually.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 19:39:41 +00:00

58 lines
1.3 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": "./src/index.ts",
"types": "./src/index.ts",
"exports": {
".": {
"types": "./src/index.ts",
"import": "./src/index.ts"
},
"./types": {
"types": "./src/types/index.ts",
"import": "./src/types/index.ts"
},
"./api-client": {
"types": "./src/api-client/index.ts",
"import": "./src/api-client/index.ts"
},
"./blocks": {
"types": "./src/blocks/registry.tsx",
"import": "./src/blocks/registry.tsx"
},
"./constants": {
"types": "./src/constants/index.ts",
"import": "./src/constants/index.ts"
}
},
"files": [
"src"
],
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"typecheck": "tsc --noEmit",
"extract": "tsx scripts/extract-types.ts",
"preinstall": "true",
"prepare": "true"
},
"keywords": [
"payload-cms",
"types",
"api-client",
"multi-tenant"
],
"license": "UNLICENSED",
"private": true,
"optionalDependencies": {},
"peerDependencies": {
"react": "^19.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
}
}