Skip to content

Commit 76919ee

Browse files
author
Alexey Budilovich
committed
fix(exports): add primitives and hooks to package.json exports map
Allows consumers to import from @pathscale/ui/primitives/* and @pathscale/ui/hooks/* directly, avoiding the barrel import that prevented tree-shaking of unused components.
1 parent ca4cc8e commit 76919ee

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pathscale/ui",
3-
"version": "1.1.37",
3+
"version": "1.1.38",
44
"author": "pathscale",
55
"repository": {
66
"type": "git",
@@ -31,6 +31,14 @@
3131
"types": "./dist/components/*/index.d.ts",
3232
"import": "./dist/components/*/index.js"
3333
},
34+
"./primitives/*": {
35+
"types": "./dist/primitives/*/index.d.ts",
36+
"import": "./dist/primitives/*/index.js"
37+
},
38+
"./hooks/*": {
39+
"types": "./dist/hooks/*/index.d.ts",
40+
"import": "./dist/hooks/*/index.js"
41+
},
3442
"./stores": {
3543
"types": "./dist/stores/index.d.ts",
3644
"import": "./dist/stores/index.js"

0 commit comments

Comments
 (0)