mirror of
https://github.com/complexcaresolutions/payload-contracts.git
synced 2026-03-17 15:13:48 +00:00
fix: point exports to TypeScript source for Git dependency consumers
Git dependencies don't run prepublishOnly, so dist/ never exists. Point all exports directly to src/*.ts files since Next.js/Turbopack handles TypeScript natively. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
715783dbf3
commit
64847594b2
1 changed files with 13 additions and 15 deletions
28
package.json
28
package.json
|
|
@ -3,40 +3,38 @@
|
|||
"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",
|
||||
"main": "./src/index.ts",
|
||||
"types": "./src/index.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js"
|
||||
"types": "./src/index.ts",
|
||||
"import": "./src/index.ts"
|
||||
},
|
||||
"./types": {
|
||||
"types": "./dist/types/index.d.ts",
|
||||
"import": "./dist/types/index.js"
|
||||
"types": "./src/types/index.ts",
|
||||
"import": "./src/types/index.ts"
|
||||
},
|
||||
"./api-client": {
|
||||
"types": "./dist/api-client/index.d.ts",
|
||||
"import": "./dist/api-client/index.js"
|
||||
"types": "./src/api-client/index.ts",
|
||||
"import": "./src/api-client/index.ts"
|
||||
},
|
||||
"./blocks": {
|
||||
"types": "./dist/blocks/registry.d.ts",
|
||||
"import": "./dist/blocks/registry.js"
|
||||
"types": "./src/blocks/registry.tsx",
|
||||
"import": "./src/blocks/registry.tsx"
|
||||
},
|
||||
"./constants": {
|
||||
"types": "./dist/constants/index.d.ts",
|
||||
"import": "./dist/constants/index.js"
|
||||
"types": "./src/constants/index.ts",
|
||||
"import": "./src/constants/index.ts"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"src"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"dev": "tsc --watch",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"extract": "tsx scripts/extract-types.ts",
|
||||
"prepublishOnly": "pnpm build"
|
||||
"extract": "tsx scripts/extract-types.ts"
|
||||
},
|
||||
"keywords": [
|
||||
"payload-cms",
|
||||
|
|
|
|||
Loading…
Reference in a new issue