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:
Derek Wene
2023-10-19 02:16:56 -05:00
committed by GitHub
parent a27083cd4b
commit 5a5c96e211
3 changed files with 10 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
---
"medusa-react": patch
"@medusajs/medusa-js": patch
---
add types to exports to help projects using moduleResolution bundler

View File

@@ -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"
},

View File

@@ -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"
},