Skip to content

Commit

Permalink
fix: bundler issue default in default (#1653)
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 authored Feb 14, 2025
1 parent 04098d5 commit 96eb597
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 120 deletions.
15 changes: 3 additions & 12 deletions packages/cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
"types": "./api/dist/index.d.ts",
"default": "./api/dist/index.js"
},
"default": {
"types": "./api/dist/index.d.ts",
"default": "./api/dist/index.js"
}
"default": "./api/dist/index.js"
},
"./reader": {
"require": {
Expand All @@ -38,10 +35,7 @@
"types": "./reader/dist/index.d.ts",
"default": "./reader/dist/index.js"
},
"default": {
"types": "./reader/dist/index.d.ts",
"default": "./reader/dist/index.js"
}
"default": "./reader/dist/index.js"
},
".": {
"require": {
Expand All @@ -52,10 +46,7 @@
"types": "./reader/dist/index.d.ts",
"default": "./reader/dist/index.js"
},
"default": {
"types": "./reader/dist/index.d.ts",
"default": "./reader/dist/index.js"
}
"default": "./reader/dist/index.js"
}
},
"repository": {
Expand Down
125 changes: 25 additions & 100 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
"types": "./agent/dist/index.d.ts",
"default": "./agent/dist/index.js"
},
"default": {
"types": "./agent/dist/index.d.ts",
"default": "./agent/dist/index.js"
}
"default": "./agent/dist/index.js"
},
"./objects": {
"require": {
Expand All @@ -27,10 +24,7 @@
"types": "./objects/dist/index.d.ts",
"default": "./objects/dist/index.js"
},
"default": {
"types": "./objects/dist/index.d.ts",
"default": "./objects/dist/index.js"
}
"default": "./objects/dist/index.js"
},
"./node-parser": {
"require": {
Expand All @@ -41,10 +35,7 @@
"types": "./node-parser/dist/index.d.ts",
"default": "./node-parser/dist/index.js"
},
"default": {
"types": "./node-parser/dist/index.d.ts",
"default": "./node-parser/dist/index.js"
}
"default": "./node-parser/dist/index.js"
},
"./query-engine": {
"require": {
Expand All @@ -55,10 +46,7 @@
"types": "./query-engine/dist/index.d.ts",
"default": "./query-engine/dist/index.js"
},
"default": {
"types": "./query-engine/dist/index.d.ts",
"default": "./query-engine/dist/index.js"
}
"default": "./query-engine/dist/index.js"
},
"./llms": {
"require": {
Expand All @@ -69,10 +57,7 @@
"types": "./llms/dist/index.d.ts",
"default": "./llms/dist/index.js"
},
"default": {
"types": "./llms/dist/index.d.ts",
"default": "./llms/dist/index.js"
}
"default": "./llms/dist/index.js"
},
"./decorator": {
"require": {
Expand All @@ -83,10 +68,7 @@
"types": "./decorator/dist/index.d.ts",
"default": "./decorator/dist/index.js"
},
"default": {
"types": "./decorator/dist/index.d.ts",
"default": "./decorator/dist/index.js"
}
"default": "./decorator/dist/index.js"
},
"./embeddings": {
"require": {
Expand All @@ -97,10 +79,7 @@
"types": "./embeddings/dist/index.d.ts",
"default": "./embeddings/dist/index.js"
},
"default": {
"types": "./embeddings/dist/index.d.ts",
"default": "./embeddings/dist/index.js"
}
"default": "./embeddings/dist/index.js"
},
"./global": {
"require": {
Expand All @@ -111,10 +90,7 @@
"types": "./global/dist/index.d.ts",
"default": "./global/dist/index.js"
},
"default": {
"types": "./global/dist/index.d.ts",
"default": "./global/dist/index.js"
}
"default": "./global/dist/index.js"
},
"./schema": {
"require": {
Expand All @@ -125,10 +101,7 @@
"types": "./schema/dist/index.d.ts",
"default": "./schema/dist/index.js"
},
"default": {
"types": "./schema/dist/index.d.ts",
"default": "./schema/dist/index.js"
}
"default": "./schema/dist/index.js"
},
"./utils": {
"require": {
Expand All @@ -139,10 +112,7 @@
"types": "./utils/dist/index.d.ts",
"default": "./utils/dist/index.js"
},
"default": {
"types": "./utils/dist/index.d.ts",
"default": "./utils/dist/index.js"
}
"default": "./utils/dist/index.js"
},
"./prompts": {
"require": {
Expand All @@ -153,10 +123,7 @@
"types": "./prompts/dist/index.d.ts",
"default": "./prompts/dist/index.js"
},
"default": {
"types": "./prompts/dist/index.d.ts",
"default": "./prompts/dist/index.js"
}
"default": "./prompts/dist/index.js"
},
"./indices": {
"require": {
Expand All @@ -167,10 +134,7 @@
"types": "./indices/dist/index.d.ts",
"default": "./indices/dist/index.js"
},
"default": {
"types": "./indices/dist/index.d.ts",
"default": "./indices/dist/index.js"
}
"default": "./indices/dist/index.js"
},
"./workflow": {
"require": {
Expand All @@ -181,10 +145,7 @@
"types": "./workflow/dist/index.d.ts",
"default": "./workflow/dist/index.js"
},
"default": {
"types": "./workflow/dist/index.d.ts",
"default": "./workflow/dist/index.js"
}
"default": "./workflow/dist/index.js"
},
"./memory": {
"require": {
Expand All @@ -195,10 +156,7 @@
"types": "./memory/dist/index.d.ts",
"default": "./memory/dist/index.js"
},
"default": {
"types": "./memory/dist/index.d.ts",
"default": "./memory/dist/index.js"
}
"default": "./memory/dist/index.js"
},
"./storage/chat-store": {
"require": {
Expand All @@ -209,10 +167,7 @@
"types": "./storage/chat-store/dist/index.d.ts",
"default": "./storage/chat-store/dist/index.js"
},
"default": {
"types": "./storage/chat-store/dist/index.d.ts",
"default": "./storage/chat-store/dist/index.js"
}
"default": "./storage/chat-store/dist/index.js"
},
"./storage/doc-store": {
"require": {
Expand All @@ -223,10 +178,7 @@
"types": "./storage/doc-store/dist/index.d.ts",
"default": "./storage/doc-store/dist/index.js"
},
"default": {
"types": "./storage/doc-store/dist/index.d.ts",
"default": "./storage/doc-store/dist/index.js"
}
"default": "./storage/doc-store/dist/index.js"
},
"./storage/index-store": {
"require": {
Expand All @@ -237,10 +189,7 @@
"types": "./storage/index-store/dist/index.d.ts",
"default": "./storage/index-store/dist/index.js"
},
"default": {
"types": "./storage/index-store/dist/index.d.ts",
"default": "./storage/index-store/dist/index.js"
}
"default": "./storage/index-store/dist/index.js"
},
"./storage/kv-store": {
"require": {
Expand All @@ -251,10 +200,7 @@
"types": "./storage/kv-store/dist/index.d.ts",
"default": "./storage/kv-store/dist/index.js"
},
"default": {
"types": "./storage/kv-store/dist/index.d.ts",
"default": "./storage/kv-store/dist/index.js"
}
"default": "./storage/kv-store/dist/index.js"
},
"./response-synthesizers": {
"require": {
Expand All @@ -265,10 +211,7 @@
"types": "./response-synthesizers/dist/index.d.ts",
"default": "./response-synthesizers/dist/index.js"
},
"default": {
"types": "./response-synthesizers/dist/index.d.ts",
"default": "./response-synthesizers/dist/index.js"
}
"default": "./response-synthesizers/dist/index.js"
},
"./chat-engine": {
"require": {
Expand All @@ -279,10 +222,7 @@
"types": "./chat-engine/dist/index.d.ts",
"default": "./chat-engine/dist/index.js"
},
"default": {
"types": "./chat-engine/dist/index.d.ts",
"default": "./chat-engine/dist/index.js"
}
"default": "./chat-engine/dist/index.js"
},
"./retriever": {
"require": {
Expand All @@ -293,10 +233,7 @@
"types": "./retriever/dist/index.d.ts",
"default": "./retriever/dist/index.js"
},
"default": {
"types": "./retriever/dist/index.d.ts",
"default": "./retriever/dist/index.js"
}
"default": "./retriever/dist/index.js"
},
"./vector-store": {
"require": {
Expand All @@ -307,10 +244,7 @@
"types": "./vector-store/dist/index.d.ts",
"default": "./vector-store/dist/index.js"
},
"default": {
"types": "./vector-store/dist/index.d.ts",
"default": "./vector-store/dist/index.js"
}
"default": "./vector-store/dist/index.js"
},
"./tools": {
"require": {
Expand All @@ -321,10 +255,7 @@
"types": "./tools/dist/index.d.ts",
"default": "./tools/dist/index.js"
},
"default": {
"types": "./tools/dist/index.d.ts",
"default": "./tools/dist/index.js"
}
"default": "./tools/dist/index.js"
},
"./data-structs": {
"require": {
Expand All @@ -335,10 +266,7 @@
"types": "./data-structs/dist/index.d.ts",
"default": "./data-structs/dist/index.js"
},
"default": {
"types": "./data-structs/dist/index.d.ts",
"default": "./data-structs/dist/index.js"
}
"default": "./data-structs/dist/index.js"
},
"./postprocessor": {
"require": {
Expand All @@ -349,10 +277,7 @@
"types": "./postprocessor/dist/index.d.ts",
"default": "./postprocessor/dist/index.js"
},
"default": {
"types": "./postprocessor/dist/index.d.ts",
"default": "./postprocessor/dist/index.js"
}
"default": "./postprocessor/dist/index.js"
}
},
"files": [
Expand Down
10 changes: 2 additions & 8 deletions packages/env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@
"types": "./tokenizers/dist/index.d.cts",
"default": "./tokenizers/dist/index.cjs"
},
"default": {
"types": "./tokenizers/dist/index.d.ts",
"default": "./tokenizers/dist/index.js"
}
"default": "./tokenizers/dist/index.js"
},
"./multi-model": {
"workerd": {
Expand All @@ -98,10 +95,7 @@
"types": "./multi-model/dist/index.d.cts",
"default": "./multi-model/dist/index.cjs"
},
"default": {
"types": "./multi-model/dist/index.d.ts",
"default": "./multi-model/dist/index.js"
}
"default": "./multi-model/dist/index.js"
}
},
"files": [
Expand Down

0 comments on commit 96eb597

Please sign in to comment.