Skip to content

Commit

Permalink
Merge pull request #30 from langtail/reexport-stream-plus-react-hook-…
Browse files Browse the repository at this point in the history
…exports

add exports to package.json of the new modules
  • Loading branch information
vojtatranta committed Jun 21, 2024
2 parents b24eaed + eb1c5c8 commit ae09555
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@
"import": "./dist/template.mjs",
"types": "./dist/template.d.ts"
},
"./dist/stream": {
"require": "./dist/stream/index.js",
"import": "./dist/stream/index.mjs",
"types": "./dist/stream/index.d.ts"
},
"./dist/react/useChatStream": {
"require": "./dist/react/useChatStream.js",
"import": "./dist/react/useChatStream.mjs",
"types": "./dist/react/useChatStream.d.ts"
},
"./dist/vercelAi": {
"require": "./dist/vercelAi/index.js",
"import": "./dist/vercelAi/index.mjs",
Expand Down Expand Up @@ -106,7 +116,9 @@
"src/template.ts",
"src/getOpenAIBody.ts",
"src/vercelAi/index.ts",
"src/bin/entry.ts"
"src/bin/entry.ts",
"src/stream/index.ts",
"src/react/useChatStream.ts"
],
"external": [
"dotenv-flow",
Expand Down

0 comments on commit ae09555

Please sign in to comment.