mirror of
https://github.com/complexcaresolutions/payload-contracts.git
synced 2026-03-17 16:23:47 +00:00
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>
58 lines
1.3 KiB
JSON
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
|
|
}
|
|
}
|
|
}
|