Skip to content

Commit a177cf4

Browse files
committed
update package.json to accomodate separate import
1 parent 77d62bf commit a177cf4

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

typescript-sdk/integrations/mastra/package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,25 @@
1414
"dist/**",
1515
"README.md"
1616
],
17+
"exports": {
18+
".": {
19+
"types": "./dist/index.d.ts",
20+
"import": "./dist/index.mjs",
21+
"require": "./dist/index.js"
22+
},
23+
"./copilotkit": {
24+
"types": "./dist/copilotkit.d.ts",
25+
"import": "./dist/copilotkit.mjs",
26+
"require": "./dist/copilotkit.js"
27+
}
28+
},
29+
"typesVersions": {
30+
"*": {
31+
"copilotkit": [
32+
"dist/copilotkit.d.ts"
33+
]
34+
}
35+
},
1736
"scripts": {
1837
"build": "tsup",
1938
"dev": "tsup --watch",
@@ -23,6 +42,20 @@
2342
"link:global": "pnpm link --global",
2443
"unlink:global": "pnpm unlink --global"
2544
},
45+
"tsup": {
46+
"entry": {
47+
"index": "src/index.ts",
48+
"copilotkit": "src/copilotkit.ts"
49+
},
50+
"dts": true,
51+
"format": [
52+
"cjs",
53+
"esm"
54+
],
55+
"splitting": false,
56+
"sourcemap": true,
57+
"clean": true
58+
},
2659
"dependencies": {
2760
"@ag-ui/client": "workspace:*",
2861
"@ai-sdk/ui-utils": "^1.1.19",

0 commit comments

Comments
 (0)