fix(medusa-js): Types for bundler (#5400)
* fix(package.json): add types in exports to help with projects using tsconfig moduleResolution: bundler * chore: add changeset
This commit is contained in:
6
.changeset/swift-tomatoes-switch.md
Normal file
6
.changeset/swift-tomatoes-switch.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"medusa-react": patch
|
||||
"@medusajs/medusa-js": patch
|
||||
---
|
||||
|
||||
add types to exports to help projects using moduleResolution bundler
|
||||
@@ -11,7 +11,8 @@
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.js"
|
||||
"require": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.js"
|
||||
"require": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user