Skip to content

Commit

Permalink
Fix package exports in snaps-sdk (#2737)
Browse files Browse the repository at this point in the history
The exports in `snaps-sdk` were wrongfully specifying `default` before
`types` in some cases. The `types` field for the JSX entrypoints was
also pointing to the wrong location.
  • Loading branch information
Mrtenz authored Sep 19, 2024
1 parent ed8b1de commit 0c91eb4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/snaps-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,38 @@
"default": "./dist/index.mjs"
},
"require": {
"default": "./dist/index.cjs",
"types": "./dist/index.d.cts"
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./jsx": {
"import": {
"types": "./dist/types/jsx/index.d.mts",
"types": "./dist/jsx/index.d.mts",
"default": "./dist/jsx/index.mjs"
},
"require": {
"default": "./dist/jsx/index.cjs",
"types": "./dist/types/jsx/index.d.cts"
"types": "./dist/jsx/index.d.cts",
"default": "./dist/jsx/index.cjs"
}
},
"./jsx-runtime": {
"import": {
"types": "./dist/types/jsx/jsx-runtime.d.mts",
"types": "./dist/jsx/jsx-runtime.d.mts",
"default": "./dist/jsx/jsx-runtime.mjs"
},
"require": {
"default": "./dist/jsx/jsx-runtime.cjs",
"types": "./dist/types/jsx/jsx-runtime.d.cts"
"types": "./dist/jsx/jsx-runtime.d.cts",
"default": "./dist/jsx/jsx-runtime.cjs"
}
},
"./jsx-dev-runtime": {
"import": {
"types": "./dist/types/jsx/jsx-dev-runtime.d.mts",
"types": "./dist/jsx/jsx-dev-runtime.d.mts",
"default": "./dist/jsx/jsx-dev-runtime.mjs"
},
"require": {
"default": "./dist/jsx/jsx-dev-runtime.cjs",
"types": "./dist/types/jsx/jsx-dev-runtime.d.cts"
"types": "./dist/jsx/jsx-dev-runtime.d.cts",
"default": "./dist/jsx/jsx-dev-runtime.cjs"
}
},
"./package.json": "./package.json"
Expand Down

0 comments on commit 0c91eb4

Please sign in to comment.