Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .changeset/fix-publishconfig-types.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
"@perstack/core": patch
"@perstack/react": patch
"@perstack/api-client": patch
---

Fixed `publishConfig.types` format in package.json files

The `types` field was incorrectly specified as an object (`{ ".": "./dist/src/index.d.ts" }`) instead of being included in the `exports` field. This caused TypeScript to fail to resolve type definitions for published packages.

Changed from:
```json
"publishConfig": {
"exports": { ".": "./dist/src/index.js" },
"types": { ".": "./dist/src/index.d.ts" }
}
```

To:
```json
"publishConfig": {
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
}
```
8 changes: 4 additions & 4 deletions packages/api-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"publishConfig": {
"access": "public",
"exports": {
".": "./dist/index.js"
},
"types": {
".": "./dist/index.d.ts"
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"publishConfig": {
"access": "public",
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"publishConfig": {
"access": "public",
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/providers/anthropic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"publishConfig": {
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/providers/azure-openai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"publishConfig": {
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/providers/bedrock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"publishConfig": {
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/providers/deepseek/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"publishConfig": {
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/providers/google/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"publishConfig": {
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/providers/ollama/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"publishConfig": {
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/providers/openai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"publishConfig": {
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/providers/vertex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"publishConfig": {
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"publishConfig": {
"access": "public",
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"publishConfig": {
"access": "public",
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/runtimes/claude-code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"publishConfig": {
"access": "public",
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/runtimes/cursor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"publishConfig": {
"access": "public",
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/runtimes/docker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"publishConfig": {
"access": "public",
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/runtimes/gemini/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"publishConfig": {
"access": "public",
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/storages/aws-s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"publishConfig": {
"access": "public",
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/storages/cloudflare-r2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"publishConfig": {
"access": "public",
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/storages/filesystem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"publishConfig": {
"access": "public",
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/storages/s3-compatible/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"publishConfig": {
"access": "public",
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions packages/tui-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"publishConfig": {
"access": "public",
"exports": {
".": "./dist/src/index.js"
},
"types": {
".": "./dist/src/index.d.ts"
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
}
},
"files": [
Expand Down