Skip to content

Commit 6969ee6

Browse files
committed
🐛 Add conditional exports for Svelte components
Add svelte and types conditions to components/**/*.svelte exports to ensure proper type resolution and Svelte tooling integration. This fixes TypeScript type declaration resolution for consuming packages.
1 parent 91454c5 commit 6969ee6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/shared/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
],
2626
"exports": {
2727
"./app.css": "./src/app.css",
28-
"./components/*": "./src/lib/components/*",
28+
"./components/**/*.svelte": {
29+
"svelte": "./src/lib/components/**/*.svelte",
30+
"types": "./src/lib/components/**/*.svelte"
31+
},
2932
"./components/ui/*": "./src/lib/components/ui/*/index.ts",
3033
"./constants/*": "./src/lib/constants/*.ts",
3134
"./helpers/*": "./src/lib/helpers/*.ts",

0 commit comments

Comments
 (0)