Skip to content

Commit 1f02dfe

Browse files
authored
Merge pull request #387 from 10up/fix/exports-for-require
Fix: Include Exports for Require
2 parents 20a4557 + 1d36146 commit 1f02dfe

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,50 @@
1313
"import": {
1414
"types": "./dist/index.d.ts",
1515
"default": "./dist/index.js"
16+
},
17+
"require": {
18+
"types": "./dist/index.d.ts",
19+
"default": "./dist/index.js"
1620
}
1721
},
1822
"./api/*": {
1923
"import": {
2024
"types": "./dist/api/*/index.d.ts",
2125
"default": "./dist/api/*/index.js"
26+
},
27+
"require": {
28+
"types": "./dist/api/*/index.d.ts",
29+
"default": "./dist/api/*/index.js"
2230
}
2331
},
2432
"./components/*": {
2533
"import": {
2634
"types": "./dist/components/*/index.d.ts",
2735
"default": "./dist/components/*/index.js"
36+
},
37+
"require": {
38+
"types": "./dist/components/*/index.d.ts",
39+
"default": "./dist/components/*/index.js"
2840
}
2941
},
3042
"./hooks/*": {
3143
"import": {
3244
"types": "./dist/hooks/*/index.d.ts",
3345
"default": "./dist/hooks/*/index.js"
46+
},
47+
"require": {
48+
"types": "./dist/hooks/*/index.d.ts",
49+
"default": "./dist/hooks/*/index.js"
3450
}
3551
},
3652
"./stores/*": {
3753
"import": {
3854
"types": "./dist/stores/*/index.d.ts",
3955
"default": "./dist/stores/*/index.js"
56+
},
57+
"require": {
58+
"types": "./dist/stores/*/index.d.ts",
59+
"default": "./dist/stores/*/index.js"
4060
}
4161
}
4262
},

0 commit comments

Comments
 (0)