Skip to content

Commit

Permalink
fix: fix types paths for TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjoverm committed May 23, 2023
1 parent 48c26fc commit 2bb4703
Showing 1 changed file with 32 additions and 8 deletions.
40 changes: 32 additions & 8 deletions lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,44 @@
],
"exports": {
".": {
"import": "./dist/storyblok-react.mjs",
"require": "./dist/storyblok-react.js"
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/storyblok-react.mjs"
},
"require": {
"types": "./dist/types/index.d.ts",
"default": "./dist/storyblok-react.js"
}
},
"./rsc": {
"import": "./dist/storyblok-react2.mjs",
"require": "./dist/storyblok-react2.js"
"import": {
"types": "./dist/types/rsc/index.d.ts",
"default": "./dist/storyblok-react2.mjs"
},
"require": {
"types": "./dist/types/rsc/index.d.ts",
"default": "./dist/storyblok-react2.js"
}
},
"./bridge-loader": {
"import": "./dist/storyblok-react3.mjs",
"require": "./dist/storyblok-react3.js"
"import": {
"types": "./dist/types/bridge-loader.d.ts",
"default": "./dist/storyblok-react3.mjs"
},
"require": {
"types": "./dist/types/bridge-loader.d.ts",
"default": "./dist/storyblok-react3.js"
}
},
"./story": {
"import": "./dist/storyblok-react4.mjs",
"require": "./dist/storyblok-react4.js"
"import": {
"types": "./dist/types/story.d.ts",
"default": "./dist/storyblok-react4.mjs"
},
"require": {
"types": "./dist/types/story.d.ts",
"default": "./dist/storyblok-react4.js"
}
}
},
"scripts": {
Expand Down

0 comments on commit 2bb4703

Please sign in to comment.